Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-05-29 04:51:16 +0400
committerChristopher Faylor <me@cgf.cx>2004-05-29 04:51:16 +0400
commitc4c9eb5fd66269e0ae92615f443001230585dfe8 (patch)
tree6611714ee33efe7f3761e9e17d8243e0364bd811 /winsup
parente3778517d9c6409c9c917db83ccac20de1800a29 (diff)
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Only try to open the file
if it uses an acl.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc2
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)))