Hans Ecke <[EMAIL PROTECTED]> writes:

> Is there any way that chmod could first see if the requested status
> change has already been fulfilled, and skip files where it would not
> change anything?

Offhand I don't see why not.  POSIX allows this behavior.

> I can see that this would slow chmod down (one more stat (2) call per
> file)

It shouldn't be a problem, as it typically does the stat anyway.

There is the little matter of coding up this performance-improvement
reliably, though....



_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to