summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHurd Maintainers <hurd-maintainers@gnu.org>1994-10-05 02:51:16 +0000
committerHurd Maintainers <hurd-maintainers@gnu.org>1994-10-05 02:51:16 +0000
commit73ca06756e16fc5d22852db7a901235b1eeea9bd (patch)
tree21241247029d6ba502d7fd82f4e4e4320b292271
parentd18f25f9700cd9672e19c07a00d227a317247ddb (diff)
Formerly inode.c.~5~
-rw-r--r--bsdfsck/inode.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bsdfsck/inode.c b/bsdfsck/inode.c
index 6282d1d1..293b69c8 100644
--- a/bsdfsck/inode.c
+++ b/bsdfsck/inode.c
@@ -33,7 +33,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)inode.c 8.4 (Berkeley) 4/18/94";*/
-static char *rcsid = "$Id: inode.c,v 1.4 1994/09/01 19:15:35 mib Exp $";
+static char *rcsid = "$Id: inode.c,v 1.5 1994/10/05 02:51:16 root Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -48,6 +48,9 @@ static char *rcsid = "$Id: inode.c,v 1.4 1994/09/01 19:15:35 mib Exp $";
#include <string.h>
#include "fsck.h"
+/* Don't include dirent.h lest we get confused, but we still want this. */
+#define IFTODT(mode) (((mode) & 0170000) >> 12)
+
static ino_t startinum;
ckinode(dp, idesc)
@@ -102,7 +105,7 @@ ckinode(dp, idesc)
remsize -= sizepb;
}
/* GNU Hurd extension. */
- if (dino.di_trans)
+ if (dino.di_trans && idesc->id_type == ADDR)
{
idesc->id_blkno = dino.di_trans;
idesc->id_numfrags = sblock.fs_frag;