summaryrefslogtreecommitdiff
path: root/ufs-fsck
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-14 20:50:39 +0000
committerMiles Bader <miles@gnu.org>1996-05-14 20:50:39 +0000
commit5cfbdd924b60b5f8ffdf1c46f31e574fae882937 (patch)
tree30f2f0d1d3aaa19bc75e66c04abb71c6a4fdb1bd /ufs-fsck
parent3253e76626ac4119273a2807d2c085679015f385 (diff)
(pass2): Fix up test in preen case.
Diffstat (limited to 'ufs-fsck')
-rw-r--r--ufs-fsck/pass2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ufs-fsck/pass2.c b/ufs-fsck/pass2.c
index e42df39b..9d5f638c 100644
--- a/ufs-fsck/pass2.c
+++ b/ufs-fsck/pass2.c
@@ -93,10 +93,11 @@ pass2 ()
if (inodestate[dp->d_ino] == UNALLOC)
{
pinode (0, dnp->i_number, "REF TO UNALLOCATED NODE IN");
- if (reply ("REMOVE"))
+ if (preen || reply ("REMOVE"))
{
dp->d_ino = 0;
mod = 1;
+ pfix ("REMOVED");
continue;
}
}