diff options
-rw-r--r-- | libdiskfs/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <tb@mit.edu> + + * file-chflags.c (diskfs_S_file_chflags): Only set + NP->dn_set_ctime if we actually set the flags. + 1998-10-26 Gordon Matzigkeit <gord@trick.fig.org> * 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); |