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);
|
status = npfs_handle (npfsh);
|
||||||
if (!NT_SUCCESS (status))
|
if (!NT_SUCCESS (status))
|
||||||
return status;
|
return status;
|
||||||
access = GENERIC_WRITE | SYNCHRONIZE;
|
access = GENERIC_WRITE | FILE_READ_ATTRIBUTES | SYNCHRONIZE;
|
||||||
InitializeObjectAttributes (&attr, get_pipe_name (),
|
InitializeObjectAttributes (&attr, get_pipe_name (),
|
||||||
openflags & O_CLOEXEC ? 0 : OBJ_INHERIT,
|
openflags & O_CLOEXEC ? 0 : OBJ_INHERIT,
|
||||||
npfsh, NULL);
|
npfsh, NULL);
|
||||||
|
|
Loading…
Reference in New Issue