summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_disk_file.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-05-29 00:51:16 +0000
committerChristopher Faylor <me@cgf.cx>2004-05-29 00:51:16 +0000
commitc4c9eb5fd66269e0ae92615f443001230585dfe8 (patch)
tree6611714ee33efe7f3761e9e17d8243e0364bd811 /winsup/cygwin/fhandler_disk_file.cc
parente3778517d9c6409c9c917db83ccac20de1800a29 (diff)
downloadcygnal-c4c9eb5fd66269e0ae92615f443001230585dfe8.tar.gz
cygnal-c4c9eb5fd66269e0ae92615f443001230585dfe8.tar.bz2
cygnal-c4c9eb5fd66269e0ae92615f443001230585dfe8.zip
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Only try to open the file
if it uses an acl.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index 194f64602..81ce2d88c 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -381,7 +381,7 @@ fhandler_disk_file::fchmod (mode_t mode)
if (wincap.has_security ())
{
enable_restore_privilege ();
- if (!get_io_handle ())
+ if (!get_io_handle () && pc.has_acls ())
{
query_open (query_write_control);
if (!(oret = open_fs (O_BINARY, 0)))