summaryrefslogtreecommitdiff
path: root/bsdfsck
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-09-01 19:15:35 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-09-01 19:15:35 +0000
commit4dd6477a3337ebf4f8ac177f7ade7deef9799b30 (patch)
treee3a17083782e339e2b2d7a744cdf4ae7bf342ead /bsdfsck
parent943dbe863644cbd313b2825643e758927cb3571d (diff)
Formerly inode.c.~4~
Diffstat (limited to 'bsdfsck')
-rw-r--r--bsdfsck/inode.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/bsdfsck/inode.c b/bsdfsck/inode.c
index 8e1b646f..6282d1d1 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.3 1994/08/26 16:35:02 mib Exp $";
+static char *rcsid = "$Id: inode.c,v 1.4 1994/09/01 19:15:35 mib Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -65,9 +65,10 @@ ckinode(dp, idesc)
idesc->id_entryno = 0;
idesc->id_filesize = dp->di_size;
mode = DI_MODE(dp) & IFMT;
- if (mode == IFBLK || mode == IFCHR || (mode == IFLNK &&
- (dp->di_size < sblock.fs_maxsymlinklen ||
- (sblock.fs_maxsymlinklen == 0 && dp->di_blocks == 0))))
+ if (mode == IFBLK || mode == IFCHR
+ || (mode == IFLNK && sblock.fs_maxsymlinklen != -1 &&
+ (dp->di_size < sblock.fs_maxsymlinklen
+ || (sblock.fs_maxsymlinklen == 0 && dp->di_blocks == 0))))
return (KEEPON);
dino = *dp;
ndb = howmany(dino.di_size, sblock.fs_bsize);