[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: chmod changes ctime even if no changes were made
From: |
Paul Eggert |
Subject: |
Re: chmod changes ctime even if no changes were made |
Date: |
Fri, 24 Sep 2004 00:20:38 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Hans Ecke <address@hidden> 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....