mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-03-03 21:45:51 +08:00
Cygwin: FIFO: open pipes with FILE_READ_ATTRIBUTES access
This is needed by NtQueryInformationFile, which is used by select.
This commit is contained in:
parent
44693e80b1
commit
eb50f82677
@ -254,7 +254,7 @@ fhandler_fifo::open_pipe (HANDLE& ph)
|
||||
status = npfs_handle (npfsh);
|
||||
if (!NT_SUCCESS (status))
|
||||
return status;
|
||||
access = GENERIC_WRITE | SYNCHRONIZE;
|
||||
access = GENERIC_WRITE | FILE_READ_ATTRIBUTES | SYNCHRONIZE;
|
||||
InitializeObjectAttributes (&attr, get_pipe_name (),
|
||||
openflags & O_CLOEXEC ? 0 : OBJ_INHERIT,
|
||||
npfsh, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user