On Wed, 2022-08-24 at 11:21 +1000, NeilBrown wrote: > utime and related calls always change the ctime. It is worth making > this explicit. > This is clear from the code (vfs_utimes() in fs/utimes.c always sets > ATTR_CTIME) and is documented in > https://pubs.opengroup.org/onlinepubs/007904875/functions/utimes.html > > Signed-off-by: NeilBrown <neilb@xxxxxxx> > --- > man2/utime.2 | 2 ++ > man2/utimensat.2 | 3 +++ > 2 files changed, 5 insertions(+) > > diff --git a/man2/utime.2 b/man2/utime.2 > index 5338723574e2..7557d680afa3 100644 > --- a/man2/utime.2 > +++ b/man2/utime.2 > @@ -39,6 +39,8 @@ to the > fields of > .I times > respectively. > +The status change time (ctime) will be set to the current time, even if the > +other time stamps don't actually change. > .PP > If > .I times > diff --git a/man2/utimensat.2 b/man2/utimensat.2 > index 11cf3ee24129..2abf8e196ee1 100644 > --- a/man2/utimensat.2 > +++ b/man2/utimensat.2 > @@ -101,6 +101,9 @@ If > .I times > is NULL, then both timestamps are set to the current time. > .\" > +.PP > +The status change time (ctime) will be set to the current time, even if the > +other time stamps don't actually change. > .SS Permissions requirements > To set both file timestamps to the current time (i.e., > .I times Reviewed-by: Jeff Layton <jlayton@xxxxxxxxxx>