]> sourceware.org Git - newlib-cygwin.git/commitdiff
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Only try to open the file
authorChristopher Faylor <me@cgf.cx>
Sat, 29 May 2004 00:51:16 +0000 (00:51 +0000)
committerChristopher Faylor <me@cgf.cx>
Sat, 29 May 2004 00:51:16 +0000 (00:51 +0000)
if it uses an acl.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_disk_file.cc

index ee3e1803033e316a550f0a020f4034091636f023..246779223079147a0ccc2a06b4e71469466fe855 100644 (file)
@@ -1,3 +1,8 @@
+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
index 194f646020abb4fbb632d918a44c372b043e734f..81ce2d88c7c71feab7c16eca76ab4a3f35835473 100644 (file)
@@ -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)))
This page took 0.035664 seconds and 5 git commands to generate.