summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-04-16 19:14:46 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-04-16 19:14:46 +0000
commit2f8b2b3175c32fc9c688acf642f555297cbe7d9b (patch)
treec668fedde59f3675c9ff2403aeb40a93d7791a3f
parent2208c5553c009deff0e9b94d8330f4d61ff0f7e4 (diff)
(diskfs_dirremove): Update mtime.
-rw-r--r--libdiskfs/dirremove.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdiskfs/dirremove.c b/libdiskfs/dirremove.c
index 16390856..d2ca0b5a 100644
--- a/libdiskfs/dirremove.c
+++ b/libdiskfs/dirremove.c
@@ -38,6 +38,9 @@ diskfs_dirremove (struct node *dp,
diskfs_purge_lookup_cache (dp, np);
err = diskfs_dirremove_hard (dp, ds);
+ if (!err)
+ dn->dn_set_mtime = 1;
+
if (!err && dp->dirmod_reqs)
diskfs_notice_dirchange (dp, DIR_CHANGED_UNLINK, name);
return err;