Cygwin: FIFO: open pipes with FILE_READ_ATTRIBUTES access

This is needed by NtQueryInformationFile, which is used by select.
This commit is contained in:
Ken Brown 2021-09-03 14:23:47 -04:00 committed by Corinna Vinschen
parent 44693e80b1
commit eb50f82677
1 changed files with 1 additions and 1 deletions

View File

@ -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);