OSDN Git Service

* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Allow to report
authorcorinna <corinna>
Sun, 29 Aug 2004 09:32:49 +0000 (09:32 +0000)
committercorinna <corinna>
Sun, 29 Aug 2004 09:32:49 +0000 (09:32 +0000)
success on systems with ntsec and ntea set.

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

index f2c80e9..7dc1cf2 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-29  Corinna Vinschen  <corinna@vinschen.de>
+
+       * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Allow to report
+       success on systems with ntsec and ntea set.
+
 2004-08-28  Pierre Humblet <pierre.humblet@ieee.org>
 
        * fhandler.cc (fhandler_base::write): In the lseek_bug case, set EOF 
index 81ce2d8..ebf9277 100644 (file)
@@ -409,7 +409,7 @@ fhandler_disk_file::fchmod (mode_t mode)
 
   if (!SetFileAttributes (pc, pc))
     __seterrno ();
-  else if (!allow_ntsec)
+  else if (!allow_ntsec || !pc.has_acls ())
     /* Correct NTFS security attributes have higher priority */
     res = 0;