summaryrefslogtreecommitdiff
path: root/ufs-fsck
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-10-11 19:42:32 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-10-11 19:42:32 +0000
commit002e491dd25169be89cb793cbf956d9651af47e0 (patch)
tree4a43101cf5a8ec32857524fcc565e74b6117b206 /ufs-fsck
parent3aff68b4d5d71fe668bb873861418e9c44085936 (diff)
Formerly pass3.c.~2~
Diffstat (limited to 'ufs-fsck')
-rw-r--r--ufs-fsck/pass3.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ufs-fsck/pass3.c b/ufs-fsck/pass3.c
index ca5e3da7..1d366f21 100644
--- a/ufs-fsck/pass3.c
+++ b/ufs-fsck/pass3.c
@@ -53,7 +53,13 @@ pass3 ()
if (dnp->i_parent == 0)
{
assert (!(inodestate[dnp->i_number] & DIR_REF));
- linkup (dnp->i_number, dnp->i_dotdot);
+ pwarn ("UNREF DIR");
+ pinode (number);
+ if (preen)
+ printf (" (RECONNECTED)");
+ if (preen || reply ("RECONNECT"))
+ if (linkup (dnp->i_number, dnp->i_dotdot))
+ dnp->i_parent = dnp->i_dotdot = lfdir;
}
}
}