summaryrefslogtreecommitdiff
path: root/libdiskfs/file-chflags.c
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 /libdiskfs/file-chflags.c
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.
Diffstat (limited to 'libdiskfs/file-chflags.c')
-rw-r--r--libdiskfs/file-chflags.c6
1 files changed, 4 insertions, 2 deletions
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);