From: corinna Date: Sun, 29 Aug 2004 09:32:49 +0000 (+0000) Subject: * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Allow to report X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=eb8253cc51371110114972f3ea5889a0d9786f59;p=pf3gnuchains%2Fpf3gnuchains3x.git * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Allow to report success on systems with ntsec and ntea set. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index f2c80e96dd..7dc1cf2771 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2004-08-29 Corinna Vinschen + + * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Allow to report + success on systems with ntsec and ntea set. + 2004-08-28 Pierre Humblet * fhandler.cc (fhandler_base::write): In the lseek_bug case, set EOF diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 81ce2d88c7..ebf92772a3 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -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;