[Midnightbsd-cvs] src [8498] trunk/lib/libc/gen/nftw.c: do not check the maxfs arg against OPEN_MAX.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 18 18:41:20 EDT 2016
Revision: 8498
http://svnweb.midnightbsd.org/src/?rev=8498
Author: laffer1
Date: 2016-09-18 18:41:20 -0400 (Sun, 18 Sep 2016)
Log Message:
-----------
do not check the maxfs arg against OPEN_MAX.
Modified Paths:
--------------
trunk/lib/libc/gen/nftw.c
Modified: trunk/lib/libc/gen/nftw.c
===================================================================
--- trunk/lib/libc/gen/nftw.c 2016-09-18 22:40:52 UTC (rev 8497)
+++ trunk/lib/libc/gen/nftw.c 2016-09-18 22:41:20 UTC (rev 8498)
@@ -34,7 +34,6 @@
#include <errno.h>
#include <fts.h>
#include <ftw.h>
-#include <limits.h>
int
nftw(const char *path, int (*fn)(const char *, const struct stat *, int,
@@ -47,7 +46,7 @@
int error = 0, ftsflags, fnflag, postorder, sverrno;
/* XXX - nfds is currently unused */
- if (nfds < 1 || nfds > OPEN_MAX) {
+ if (nfds < 1) {
errno = EINVAL;
return (-1);
}
More information about the Midnightbsd-cvs
mailing list