summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-11 19:33:59 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-11 19:33:59 +0000
commitf8dac6b6bde3e22155ebf3865a8c20dee39b1c54 (patch)
treee43e58cf0ed2b831b9fd9fa8e836c4ba3dca5f8f
parent3139e2fd3f00225ac02821ea8895758740af4556 (diff)
Formerly node-drop.c.~4~
-rw-r--r--libdiskfs/node-drop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdiskfs/node-drop.c b/libdiskfs/node-drop.c
index c8768c4a..7f2de299 100644
--- a/libdiskfs/node-drop.c
+++ b/libdiskfs/node-drop.c
@@ -22,16 +22,18 @@
void
diskfs_drop_node (struct node *np)
{
+ mode_t savemode;
fshelp_kill_translator (&np->translator);
if (np->dn_stat.st_nlink == 0)
{
assert (!diskfs_readonly);
diskfs_truncate (np, 0);
+ savemode = np->dn_stat.st_mode;
np->dn_stat.st_mode = 0;
np->dn_stat.st_rdev = 0;
np->dn_set_ctime = np->dn_set_atime = 1;
diskfs_node_update (np, 1);
- diskfs_free_node (np);
+ diskfs_free_node (np, savemode);
}
diskfs_node_norefs (np);
}