diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2009-09-16 12:06:34 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2009-09-16 12:06:34 +0000 |
commit | 30ae619a3c62f45ca391462d5482646c710d0c32 (patch) | |
tree | 4a11fe80b7688889e4eab7c3ad4f3cad41c38903 /usr.bin/find/function.c | |
parent | 7c78d72a6b6d5896fa5508d30a588b2050bc3afb (diff) |
Allow -maxdepth 0; noticed by bluhm@
Diffstat (limited to 'usr.bin/find/function.c')
-rw-r--r-- | usr.bin/find/function.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index 9b928eaf12b..eea475c824b 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -1,4 +1,4 @@ -/* $OpenBSD: function.c,v 1.32 2009/08/27 16:19:27 millert Exp $ */ +/* $OpenBSD: function.c,v 1.33 2009/09/16 12:06:33 millert Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -34,7 +34,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)function.c 8.1 (Berkeley) 6/6/93";*/ -static char rcsid[] = "$OpenBSD: function.c,v 1.32 2009/08/27 16:19:27 millert Exp $"; +static char rcsid[] = "$OpenBSD: function.c,v 1.33 2009/09/16 12:06:33 millert Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -836,7 +836,7 @@ c_maxdepth(char *arg, char ***ignored, int unused) const char *errstr = NULL; new = palloc(N_MAXDEPTH, f_maxdepth); - new->max_data = strtonum(arg, 1, FTS_MAXLEVEL, &errstr); + new->max_data = strtonum(arg, 0, FTS_MAXLEVEL, &errstr); if (errstr) errx(1, "%s: maxdepth value %s", arg, errstr); return (new); |