aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-02-22 16:40:42 +0000
committerCorinna Vinschen <corinna@vinschen.de>2006-02-22 16:40:42 +0000
commitb65479ca2edb67be5ce209cbc6bf689f9c12480d (patch)
treef3adc1f6318d965cd70178c9470f3bd01cf0ece8
parentf41c4c7ced3b4de503b49ff3d047d2dd7df7edf8 (diff)
downloadnewlib-b65479ca2edb67be5ce209cbc6bf689f9c12480d.zip
newlib-b65479ca2edb67be5ce209cbc6bf689f9c12480d.tar.gz
newlib-b65479ca2edb67be5ce209cbc6bf689f9c12480d.tar.bz2
* fhandler.cc (fhandler_base::open): Add FILE_READ_ATTRIBUTES to
access flags in case of query_read_control case, add FILE_READ_DATA in case of query_stat_control.
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/fhandler.cc4
2 files changed, 8 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c1644c6..9c5de19 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,9 @@
+2006-02-22 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler.cc (fhandler_base::open): Add FILE_READ_ATTRIBUTES to
+ access flags in case of query_read_control case, add FILE_READ_DATA
+ in case of query_stat_control.
+
2006-02-20 Christopher Faylor <cgf@timesys.com>
* spawn.cc (av::fixup): Check for .bat and friends specifically now
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index 80efcae..237aaad 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -586,11 +586,11 @@ fhandler_base::open (int flags, mode_t mode)
switch (query_open ())
{
case query_read_control:
- access = READ_CONTROL;
+ access = READ_CONTROL | FILE_READ_ATTRIBUTES;
create_options = FILE_OPEN_FOR_BACKUP_INTENT;
break;
case query_stat_control:
- access = READ_CONTROL | FILE_READ_ATTRIBUTES;
+ access = READ_CONTROL | FILE_READ_ATTRIBUTES | FILE_READ_DATA;
create_options = FILE_OPEN_FOR_BACKUP_INTENT;
break;
case query_write_control: