summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/nftw.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2006-03-31 19:37:32 +0000
committermillert <millert@openbsd.org>2006-03-31 19:37:32 +0000
commitd690eeb0ab33fb99e4f134e5474e1bbbc44dd84b (patch)
tree9fc6aad2cfe76ea04781341acc0f8bcebd55366d /lib/libc/gen/nftw.c
parentsprinkle a bit of ARGSUSED (diff)
downloadwireguard-openbsd-d690eeb0ab33fb99e4f134e5474e1bbbc44dd84b.tar.xz
wireguard-openbsd-d690eeb0ab33fb99e4f134e5474e1bbbc44dd84b.zip
nfds is not constrained by OPEN_MAX for nftw(), only ftw()
Diffstat (limited to 'lib/libc/gen/nftw.c')
-rw-r--r--lib/libc/gen/nftw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/nftw.c b/lib/libc/gen/nftw.c
index dd201b495e2..e4d1a559b3d 100644
--- a/lib/libc/gen/nftw.c
+++ b/lib/libc/gen/nftw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nftw.c,v 1.5 2005/08/08 08:05:34 espie Exp $ */
+/* $OpenBSD: nftw.c,v 1.6 2006/03/31 19:37:32 millert Exp $ */
/*
* Copyright (c) 2003, 2004 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -38,7 +38,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);
}