summaryrefslogtreecommitdiff
path: root/ufs-fsck
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-02 01:03:59 +0000
committerMiles Bader <miles@gnu.org>1996-05-02 01:03:59 +0000
commit71c04b07dab6af1b537d7ccf61a3555e525802d9 (patch)
tree73b03327bca3a4a05b1444474fd410ea08d393af /ufs-fsck
parent4a6b570f5af2fb9a3a6260fd29fd13c680b7aa4d (diff)
(pass3): Use new printing functions.
Diffstat (limited to 'ufs-fsck')
-rw-r--r--ufs-fsck/pass3.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/ufs-fsck/pass3.c b/ufs-fsck/pass3.c
index 7353c9f2..fd5ad1b0 100644
--- a/ufs-fsck/pass3.c
+++ b/ufs-fsck/pass3.c
@@ -1,5 +1,5 @@
/* Pass 3 of GNU fsck -- Look for disconnected directories
- Copyright (C) 1994 Free Software Foundation, Inc.
+ Copyright (C) 1994, 1996 Free Software Foundation, Inc.
Written by Michael I. Bushnell.
This file is part of the GNU Hurd.
@@ -57,18 +57,15 @@ pass3 ()
{
if (inodestate[dnp->i_number] & DIR_REF)
errexit ("ORPHANED DIR MARKED WITH CONNECT");
- pinode (dnp->i_number, "UNREF");
- if (preen || reply ("RECONNECT"))
+ pinode (0, dnp->i_number, "UNREF");
+ if ((preen || reply ("RECONNECT"))
+ && linkup (dnp->i_number, dnp->i_dotdot))
{
- if (linkup (dnp->i_number, dnp->i_dotdot))
- dnp->i_parent = dnp->i_dotdot = lfdir;
+ dnp->i_parent = dnp->i_dotdot = lfdir;
pfix ("RECONNECTED");
}
+ else
+ pfail (0);
}
}
}
-
-
-
-
-