diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-07-04 19:25:36 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-07-04 19:25:36 +0400 |
commit | fc3e7da6b07f70c4be4d75f79f92a306520b8a7f (patch) | |
tree | ca0e76bf5c25cc10d7af4a6c5834d19ad75b4fa9 /winsup/cygwin/dcrt0.cc | |
parent | d3ed549d518c216a42b43e20f224be5323ee66a8 (diff) |
Throughout, open console handles with sharing for reading and writing.
* dcrt0.cc (insert_file): Open file with full sharing allowed.
* hookapi.cc (find_first_notloaded_dll): Ditto.
* spawn.cc (av::fixup): Ditto.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index e9ac04a21..017faa692 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -95,12 +95,12 @@ insert_file (char *name, char *&cmd) PWCHAR wname = tp.w_get (); sys_mbstowcs (wname, NT_MAX_PATH, name + 1); f = CreateFileW (wname, - GENERIC_READ, /* open for reading */ - FILE_SHARE_READ, /* share for reading */ - &sec_none_nih, /* default security */ - OPEN_EXISTING, /* existing file only */ - FILE_ATTRIBUTE_NORMAL,/* normal file */ - NULL); /* no attr. template */ + GENERIC_READ, /* open for reading */ + FILE_SHARE_VALID_FLAGS, /* share for reading */ + &sec_none_nih, /* default security */ + OPEN_EXISTING, /* existing file only */ + FILE_ATTRIBUTE_NORMAL, /* normal file */ + NULL); /* no attr. template */ if (f == INVALID_HANDLE_VALUE) { |