diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 080f991a2..13748329a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2004-04-20 Corinna Vinschen + + * fhandler.cc (fhandler_base::open): Add FILE_READ_ATTRIBUTES when + only GENERIC_WRITE access is requested. + 2004-04-19 Corinna Vinschen * include/cygwin/mtio.h (GMT_ASYNC): New define. diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index a3ef1bb32..e02d4e507 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -604,7 +604,7 @@ fhandler_base::open (int flags, mode_t mode) if ((flags & (O_RDONLY | O_WRONLY | O_RDWR)) == O_RDONLY) access = GENERIC_READ; else if ((flags & (O_RDONLY | O_WRONLY | O_RDWR)) == O_WRONLY) - access = GENERIC_WRITE; + access = GENERIC_WRITE | FILE_READ_ATTRIBUTES; else access = GENERIC_READ | GENERIC_WRITE; /* Allow reliable lseek on disk devices. */