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/hookapi.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/hookapi.cc')
-rw-r--r-- | winsup/cygwin/hookapi.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/hookapi.cc b/winsup/cygwin/hookapi.cc index 148d88249..b82e4b4c5 100644 --- a/winsup/cygwin/hookapi.cc +++ b/winsup/cygwin/hookapi.cc @@ -174,7 +174,7 @@ find_first_notloaded_dll (path_conv& pc) status = NtOpenFile (&h, SYNCHRONIZE | GENERIC_READ, pc.get_object_attr (attr, sec_none_nih), - &io, FILE_SHARE_READ | FILE_SHARE_WRITE, + &io, FILE_SHARE_VALID_FLAGS, FILE_SYNCHRONOUS_IO_NONALERT | FILE_OPEN_FOR_BACKUP_INTENT | FILE_NON_DIRECTORY_FILE); |