Module Name: src Committed By: christos Date: Tue Sep 27 01:08:55 UTC 2011
Modified Files: src/sys/stand: ls.c Log Message: use NAME_MAX instead of MAXNAMLEN To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/stand/ls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/stand/ls.c diff -u src/sys/stand/ls.c:1.16 src/sys/stand/ls.c:1.17 --- src/sys/stand/ls.c:1.16 Wed Mar 18 06:22:45 2009 +++ src/sys/stand/ls.c Mon Sep 26 21:08:55 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: ls.c,v 1.16 2009/03/18 10:22:45 cegger Exp $ */ +/* $NetBSD: ls.c,v 1.17 2011/09/27 01:08:55 christos Exp $ */ /*- * Copyright (c) 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993\n\ #if 0 static char sccsid[] = "@(#)ls.c 8.1 (Berkeley) 6/11/93"; #else -__RCSID("$NetBSD: ls.c,v 1.16 2009/03/18 10:22:45 cegger Exp $"); +__RCSID("$NetBSD: ls.c,v 1.17 2011/09/27 01:08:55 christos Exp $"); #endif #endif /* not lint */ @@ -96,7 +96,7 @@ ls(register int fd) dp += ((DP *)dp)->d_reclen) { if (((DP *)dp)->d_fileno == 0) continue; - if (((DP *)dp)->d_namlen > MAXNAMLEN+1) { + if (((DP *)dp)->d_namlen > NAME_MAX + 1) { printf("Corrupt file name length! Run fsck soon!\n"); return; }