From d9185de6346a26b7b4d3095e7e89352f364b0572 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Sat, 6 Jul 1996 17:32:52 +0000 Subject: (diskfs_drop_node): If this might be a special symlink, then truncate it even though NP->allocsize might be clear. --- libdiskfs/node-drop.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libdiskfs') diff --git a/libdiskfs/node-drop.c b/libdiskfs/node-drop.c index 5920e391..d24bd86d 100644 --- a/libdiskfs/node-drop.c +++ b/libdiskfs/node-drop.c @@ -33,7 +33,10 @@ diskfs_drop_node (struct node *np) if (np->istranslated) diskfs_set_translator (np, 0, 0, 0); - if (np->allocsize != 0) + if (np->allocsize != 0 + || (diskfs_create_symlink_hook + && S_ISLNK (np->dn_stat.st_mode) + && np->dn_stat.st_size)) { /* If the node needs to be truncated, then a complication arises, because truncation might require gaining -- cgit v1.2.3