diff options
author | Christopher Faylor <me@cgf.cx> | 2004-05-29 00:51:16 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-05-29 00:51:16 +0000 |
commit | c4c9eb5fd66269e0ae92615f443001230585dfe8 (patch) | |
tree | 6611714ee33efe7f3761e9e17d8243e0364bd811 | |
parent | e3778517d9c6409c9c917db83ccac20de1800a29 (diff) | |
download | cygnal-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.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index ee3e18030..246779223 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2004-05-28 Pierre Humblet <Pierre.Humblet@ieee.org> + * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Only try to open + the file if it uses an acl. + +2004-05-28 Pierre Humblet <Pierre.Humblet@ieee.org> + * path.cc (chdir): Always use the normalized_path as posix_cwd, except if it starts with a drive. 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))) |