diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2012-08-09 15:04:06 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2012-08-09 15:04:06 +0000 |
commit | 4d767dfea46dae56082645e4a2939b04323e3553 (patch) | |
tree | 121bee17924aeb2475d917588207ef9bd522c9fc | |
parent | 2f70fca5ec36443dabec4ee0e5a8560bdd9f0066 (diff) |
Notes
-rw-r--r-- | lib/libc/gen/nftw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/gen/nftw.c b/lib/libc/gen/nftw.c index 43110c1a3b4a8..e14d09e0bc1e4 100644 --- a/lib/libc/gen/nftw.c +++ b/lib/libc/gen/nftw.c @@ -34,7 +34,6 @@ __FBSDID("$FreeBSD$"); #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 @@ nftw(const char *path, int (*fn)(const char *, const struct stat *, int, 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); } |