From 9c98e6242d4ff0453b3b84875ce8b3999ac89203 Mon Sep 17 00:00:00 2001 From: dg Date: Wed, 15 Feb 1995 00:17:56 +0000 Subject: >The fix for the missing ".." in the root directory is enclosed below. Submitted by: Kirk McKusick --- sbin/fsck_ffs/inode.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sbin/fsck_ffs') diff --git a/sbin/fsck_ffs/inode.c b/sbin/fsck_ffs/inode.c index 381bfc0..56b978f 100644 --- a/sbin/fsck_ffs/inode.c +++ b/sbin/fsck_ffs/inode.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)inode.c 8.4 (Berkeley) 4/18/94"; +static char sccsid[] = "@(#)inode.c 8.5 (Berkeley) 2/8/95"; #endif /* not lint */ #include @@ -311,7 +311,10 @@ cacheino(dp, inumber) inpp = &inphead[inumber % numdirs]; inp->i_nexthash = *inpp; *inpp = inp; - inp->i_parent = (ino_t)0; + if (inumber == ROOTINO) + inp->i_parent = ROOTINO; + else + inp->i_parent = (ino_t)0; inp->i_dotdot = (ino_t)0; inp->i_number = inumber; inp->i_isize = dp->di_size; -- cgit v1.1