mirror of
https://github.com/reactos/reactos.git
synced 2024-12-25 16:50:57 +00:00
Share read access to files opened for redirection
svn path=/trunk/; revision=2296
This commit is contained in:
parent
ee9ea15fe0
commit
34fca92d6d
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: cmd.c,v 1.27 2001/06/18 02:55:47 phreak Exp $
|
||||
/* $Id: cmd.c,v 1.28 2001/10/14 18:30:28 phreak Exp $
|
||||
*
|
||||
* CMD.C - command-line interface.
|
||||
*
|
||||
|
@ -447,7 +447,7 @@ VOID ParseCommandLine (LPTSTR cmd)
|
|||
{
|
||||
HANDLE hFile;
|
||||
|
||||
hFile = CreateFile (in, GENERIC_READ, 0, NULL, OPEN_EXISTING,
|
||||
hFile = CreateFile (in, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING,
|
||||
FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if (hFile == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
|
@ -519,7 +519,7 @@ VOID ParseCommandLine (LPTSTR cmd)
|
|||
/* Final output to here */
|
||||
HANDLE hFile;
|
||||
|
||||
hFile = CreateFile (out, GENERIC_WRITE, 0, NULL,
|
||||
hFile = CreateFile (out, GENERIC_WRITE, FILE_SHARE_READ, NULL,
|
||||
(nRedirFlags & OUTPUT_APPEND) ? OPEN_ALWAYS : CREATE_ALWAYS,
|
||||
FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if (hFile == INVALID_HANDLE_VALUE)
|
||||
|
|
Loading…
Reference in a new issue