Of course, the One True Unix (v7) didn't have rename(2), but did it with a link/unlink step (which wasn't atomic, and could lead to breakage, and couldn't be done for directories except by root). And thus, ctime was updated for "renaming" even for the One True Unix.
Hence, I believe the POSIX spec is off base here, because it reflects neither classic Unix, nor current practices. It seems rather arbitrary.
ctime (Score:5, Insightful)
As I understand it, the aim of POSIX is not to cast into stone the current set of practices, but to recommend some practices believed to be better. In the rename(2) case, I can't judge, because I don't know in which cases POSIX recommends to update ctime. (Does owner change updates ctime for example ?)
Reply to This
Re:ctime (Score:5, Interesting)
Of course I'd need to look at kernel source to assert this, and that's hard work for me...
-Dom
Reply to This
Parent
Re:ctime (Score:2)
Note that these days POSIX and the Single UNIX Specification are the same thing.
According to SUS (available [unix-systems.org] at www.opengroup.org for free, just registration needed):