summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-09-01 19:19:17 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-09-01 19:19:17 +0000
commitf00d576e8838df7ed655641a019afe273f81db2a (patch)
tree20dad8de47e27440b9400733e6500b0073eb6458
parent4dd6477a3337ebf4f8ac177f7ade7deef9799b30 (diff)
Formerly pass1.c.~3~
-rw-r--r--bsdfsck/pass1.c7
1 files changed, 4 insertions, 3 deletions
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 <sys/param.h>
@@ -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;