From: Peter Avalos Date: Thu, 19 Oct 2006 21:11:13 +0000 (+0000) Subject: Remove a check that is always false. X-Git-Tag: v2.0.1~4243 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/4fb01cdc2d025fb0d4524fa38f4a8c21f6d5aaeb Remove a check that is always false. --- diff --git a/sbin/fsck/Makefile b/sbin/fsck/Makefile index f3ffa16a1d..ea7e25b503 100644 --- a/sbin/fsck/Makefile +++ b/sbin/fsck/Makefile @@ -1,13 +1,13 @@ # @(#)Makefile 8.2 (Berkeley) 4/27/95 # $FreeBSD: src/sbin/fsck/Makefile,v 1.5.6.1 2001/04/25 10:58:17 ru Exp $ -# $DragonFly: src/sbin/fsck/Makefile,v 1.5 2006/10/17 00:55:40 pavalos Exp $ +# $DragonFly: src/sbin/fsck/Makefile,v 1.6 2006/10/19 21:11:13 pavalos Exp $ PROG= fsck MAN= fsck.8 SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \ pass5.c preen.c setup.c utilities.c memzone.c \ ffs_subr.c ffs_tables.c -WARNS?= 0 +WARNS?= 1 .PATH: ${.CURDIR}/../../sys/vfs/ufs .include diff --git a/sbin/fsck/dir.c b/sbin/fsck/dir.c index 685146ab80..9bf2c73bb3 100644 --- a/sbin/fsck/dir.c +++ b/sbin/fsck/dir.c @@ -32,7 +32,7 @@ * * @(#)dir.c 8.8 (Berkeley) 4/28/95 * $FreeBSD: src/sbin/fsck/dir.c,v 1.15 1999/08/28 00:12:45 peter Exp $ - * $DragonFly: src/sbin/fsck/dir.c,v 1.10 2006/10/12 04:04:03 dillon Exp $ + * $DragonFly: src/sbin/fsck/dir.c,v 1.11 2006/10/19 21:11:13 pavalos Exp $ */ #include @@ -251,7 +251,6 @@ dircheck(struct inodesc *idesc, struct direct *dp) # endif if (dp->d_reclen < size || idesc->id_filesize < size || - namlen > MAXNAMLEN || type > 15) return (0); for (cp = dp->d_name, size = 0; size < namlen; size++)