OSDN Git Service

* fhandler.cc (fhandler_base::open): Add FILE_READ_ATTRIBUTES when
authorcorinna <corinna>
Tue, 20 Apr 2004 10:24:36 +0000 (10:24 +0000)
committercorinna <corinna>
Tue, 20 Apr 2004 10:24:36 +0000 (10:24 +0000)
only GENERIC_WRITE access is requested.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.cc

index 080f991..1374832 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
+
+       * fhandler.cc (fhandler_base::open): Add FILE_READ_ATTRIBUTES when
+       only GENERIC_WRITE access is requested.
+
 2004-04-19  Corinna Vinschen  <corinna@vinschen.de>
 
        * include/cygwin/mtio.h (GMT_ASYNC): New define.
index a3ef1bb..e02d4e5 100644 (file)
@@ -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. */