-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Paul Eggert on 9/11/2008 11:56 AM: > > As I read the spec, chown and chgrp are explicitly required to make > the equivalent of a chown() call, which in turn is required to change > the ctime. However, chmod is not required to make the equivalent of a > chmod() call, and there is no requirement in the 'chmod' spec that it > change the ctime. So POSIX allows the optimization for the 'chmod' > command, but not for the 'chown' and 'chgrp' commands.
On the other hand, the POSIX spec for chmod(1) mentions that it is implementation defined on how it affects alternate access control. I have come to expect on many systems that support ACLs, that 'chmod 755' on a file with rwxr-xr-x+ permissions will remove the ACLs. In other words, optimizing away the chmod(2) call because it compares equal to the stat information would break this side-effect of clearing ACLs. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjJ3/UACgkQ84KuGfSFAYAjhACdFl0013RJgN8wk9ay0tO0Icts tiEAoKH2Sp5qaStFBGRo61omIOPCUMGO =zlNv -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]