[12483] in Athena Bugs
AFS: failed chmod updates ctime
daemon@ATHENA.MIT.EDU (John Carr)
Fri Aug 26 14:12:08 1994
To: bugs@MIT.EDU
Date: Fri, 26 Aug 94 14:11:57 EDT
From: John Carr <jfc@MIT.EDU>
If I attempt to chmod a file in AFS which I do not have permission to
change, I get an error but the ctime of the file is updated. ctime
should not be changed for failed operations.
Example:
% ls -lc .xtrekrc
-rw-rw-r-- 1 jfc 71 Aug 26 14:02 .xtrekrc
% unlog
% chmod 444 .xtrekrc
chmod: can't change .xtrekrc: Permission denied
% ls -lc .xtrekrc
-rw-rw-r-- 1 jfc 71 Aug 26 14:07 .xtrekrc
% fs flush .xtrekrc
% ls -lc .xtrekrc
-rw-rw-r-- 1 jfc 71 Aug 26 14:07 .xtrekrc
The acl on the directory containing the file allows system:anyuser rl
access.
I know AFS ctime isn't exactly the same as UFS ctime, but because it
records changes to a file it should not be updated if the file is not
changed.
This is a server bug, not a client bug: the time change is visible on
other clients.