Jim Meyering <[email protected]> writes: > This new behavior could be useful... > maybe noticeably more efficient in some cases, too. > Perhaps worth a new option, if not the default.
In rereading the old bug report, I noticed that FreeBSD is listed as the only OS that does things the more-efficient way. I looked at the FreeBSD 8.0 chmod.c source, and what it actually does is apply the optimization only if it knows that the file system does not have ACLs (it calls something named "may_have_nfs4acl", because apparently NFSv4 ACLs might change even if you apply a mode that's the same as before). I suggest that we do something similar.
