diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-06-17 05:53:45 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-06-17 05:53:45 +0000 |
commit | c8e10b82383ece01b2fe949913a2d36115c19516 (patch) | |
tree | 64088d9f075ef2410926e3022be5120a78f33cfd /usr.bin/find/main.c | |
parent | ee1d75dcd05013dcca03ca1dbd1f7e028046f6f9 (diff) |
Back out last change. Allowing no path to mean "." causes problems
with getopts vs. predicates.
Diffstat (limited to 'usr.bin/find/main.c')
-rw-r--r-- | usr.bin/find/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/find/main.c b/usr.bin/find/main.c index 0bcd42a4e6c..fc12f0bccf0 100644 --- a/usr.bin/find/main.c +++ b/usr.bin/find/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.6 1997/06/17 05:35:44 millert Exp $ */ +/* $OpenBSD: main.c,v 1.7 1997/06/17 05:53:44 millert Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -35,7 +35,7 @@ #ifndef lint /*static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";*/ -static char rcsid[] = "$OpenBSD: main.c,v 1.6 1997/06/17 05:35:44 millert Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.7 1997/06/17 05:53:44 millert Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -73,7 +73,7 @@ main(argc, argv) (void)time(&now); /* initialize the time-of-day */ - p = paths = (char **) emalloc(sizeof(char *) * (argc > 1 ? argc : 2)); + p = paths = (char **) emalloc(sizeof(char *) * argc); sigaction(SIGINFO, &sa, NULL); @@ -120,7 +120,7 @@ main(argc, argv) } if (p == paths) - *p++ = "."; /* use cwd if no dir specified */ + usage(); *p = NULL; if (!(paths = realloc(paths, sizeof(char *) * (p - paths + 1)))) |