diff options
author | dg <dg@FreeBSD.org> | 1994-08-02 12:54:27 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-08-02 12:54:27 +0000 |
commit | bd5cd438f270c38b4d2e706ee4fdf8bc45458121 (patch) | |
tree | 915609de5863c34a6313dd6db7fe6dc6dad01624 /sbin/fsck_ffs/pass1.c | |
parent | b0756e8093925874b4bd89aa2e043bb63dffc7fc (diff) | |
download | FreeBSD-src-bd5cd438f270c38b4d2e706ee4fdf8bc45458121.zip FreeBSD-src-bd5cd438f270c38b4d2e706ee4fdf8bc45458121.tar.gz |
Fixed so that it can grok old style "fastlinks".
Diffstat (limited to 'sbin/fsck_ffs/pass1.c')
-rw-r--r-- | sbin/fsck_ffs/pass1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/pass1.c b/sbin/fsck_ffs/pass1.c index ca255fe..a3ab2f9 100644 --- a/sbin/fsck_ffs/pass1.c +++ b/sbin/fsck_ffs/pass1.c @@ -160,7 +160,7 @@ 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) { + if ((dp->di_size < sblock.fs_maxsymlinklen) || dp->di_blocks == 0) { ndb = howmany(dp->di_size, sizeof(daddr_t)); if (ndb > NDADDR) { j = ndb - NDADDR; |