diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-04-20 10:24:37 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-04-20 10:24:37 +0000 |
commit | fc0ac9dfe61d308de80cd36d27b7801fb33eba69 (patch) | |
tree | 591feee3c5d4aec10c2c8bce475427001740adfc /winsup/cygwin/fhandler.cc | |
parent | b6fc88d63927bc735a14fbcefe244fbc80c9d940 (diff) | |
download | cygnal-fc0ac9dfe61d308de80cd36d27b7801fb33eba69.tar.gz cygnal-fc0ac9dfe61d308de80cd36d27b7801fb33eba69.tar.bz2 cygnal-fc0ac9dfe61d308de80cd36d27b7801fb33eba69.zip |
* fhandler.cc (fhandler_base::open): Add FILE_READ_ATTRIBUTES when
only GENERIC_WRITE access is requested.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |