From 19656903db2c911122154aa3e96f768b30edc201 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Mon, 16 Nov 1998 18:22:16 +0000 Subject: Wed Aug 12 23:35:59 1998 Thomas Bushnell, BSG * file-chflags.c (diskfs_S_file_chflags): Only set NP->dn_set_ctime if we actually set the flags. --- libdiskfs/ChangeLog | 5 +++++ libdiskfs/file-chflags.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libdiskfs/ChangeLog b/libdiskfs/ChangeLog index 94d615a8..fd6a189c 100644 --- a/libdiskfs/ChangeLog +++ b/libdiskfs/ChangeLog @@ -1,3 +1,8 @@ +Wed Aug 12 23:35:59 1998 Thomas Bushnell, BSG + + * file-chflags.c (diskfs_S_file_chflags): Only set + NP->dn_set_ctime if we actually set the flags. + 1998-10-26 Gordon Matzigkeit * init-startup.c (diskfs_startup_diskfs): Use diskfs_nput to free diff --git a/libdiskfs/file-chflags.c b/libdiskfs/file-chflags.c index 56e3f27d..01dc495c 100644 --- a/libdiskfs/file-chflags.c +++ b/libdiskfs/file-chflags.c @@ -29,8 +29,10 @@ diskfs_S_file_chflags (struct protid *cred, if (!err) err = diskfs_validate_flags_change (np, flags); if (!err) - np->dn_stat.st_flags = flags; - np->dn_set_ctime = 1; + { + np->dn_stat.st_flags = flags; + np->dn_set_ctime = 1; + } if (!err && np->filemod_reqs) diskfs_notice_filechange(np, FILE_CHANGED_META, 0, 0); -- cgit v1.2.3