From f00d576e8838df7ed655641a019afe273f81db2a Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 1 Sep 1994 19:19:17 +0000 Subject: Formerly pass1.c.~3~ --- bsdfsck/pass1.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bsdfsck') diff --git a/bsdfsck/pass1.c b/bsdfsck/pass1.c index 44a35fe8..6f254ca8 100644 --- a/bsdfsck/pass1.c +++ b/bsdfsck/pass1.c @@ -33,7 +33,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)pass1.c 8.1 (Berkeley) 6/5/93";*/ -static char *rcsid = "$Id: pass1.c,v 1.2 1994/08/23 20:15:16 mib Exp $"; +static char *rcsid = "$Id: pass1.c,v 1.3 1994/09/01 19:19:17 mib Exp $"; #endif /* not lint */ #include @@ -174,8 +174,9 @@ checkinode(inumber, idesc) * Fake ndb value so direct/indirect block checks below * will detect any garbage after symlink string. */ - if (dp->di_size < sblock.fs_maxsymlinklen || - (sblock.fs_maxsymlinklen == 0 && dp->di_blocks == 0)) { + if (sblock.fs_maxsymlinklen != -1 && + (dp->di_size < sblock.fs_maxsymlinklen || + (sblock.fs_maxsymlinklen == 0 && dp->di_blocks == 0))) { ndb = howmany(dp->di_size, sizeof(daddr_t)); if (ndb > NDADDR) { j = ndb - NDADDR; -- cgit v1.2.3