summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1998-11-16 18:22:16 +0000
committerThomas Bushnell <thomas@gnu.org>1998-11-16 18:22:16 +0000
commit19656903db2c911122154aa3e96f768b30edc201 (patch)
tree97b90f84f8507719b7738f1dbc769284bd5c92da
parent5ea4920ee625d0492bb8bd7e8e55b8cc584baa2f (diff)
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.
-rw-r--r--libdiskfs/ChangeLog5
-rw-r--r--libdiskfs/file-chflags.c6
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);