summaryrefslogtreecommitdiff
path: root/ufs-fsck/pass2.c
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
commit77d8043d451e95abf5e3111df1d14a9d4d200b60 (patch)
treef873381cc9e7162361337e1ddc3d3e45020bc27e /ufs-fsck/pass2.c
parentc8e0edbe24c86f64b1a36d622ba2e59186173c77 (diff)
(pass2): Fix up test in preen case.
Diffstat (limited to 'ufs-fsck/pass2.c')
-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;
}
}