summaryrefslogtreecommitdiff
path: root/usr.bin/find/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/find/main.c')
-rw-r--r--usr.bin/find/main.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/find/main.c b/usr.bin/find/main.c
index fc12f0bccf0..c03a38b08eb 100644
--- a/usr.bin/find/main.c
+++ b/usr.bin/find/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.7 1997/06/17 05:53:44 millert Exp $ */
+/* $OpenBSD: main.c,v 1.8 1999/03/17 17:36:30 espie 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.7 1997/06/17 05:53:44 millert Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.8 1999/03/17 17:36:30 espie Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -78,7 +78,7 @@ main(argc, argv)
sigaction(SIGINFO, &sa, NULL);
ftsoptions = FTS_NOSTAT|FTS_PHYSICAL;
- while ((ch = getopt(argc, argv, "Hdf:hXx")) != -1)
+ while ((ch = getopt(argc, argv, "Hdf:hXxW")) != -1)
switch(ch) {
case 'H':
ftsoptions |= FTS_COMFOLLOW;
@@ -100,6 +100,9 @@ main(argc, argv)
ftsoptions &= ~FTS_NOSTAT;
ftsoptions |= FTS_XDEV;
break;
+ case 'W':
+ ftsoptions |= FTS_WHITEOUT;
+ break;
case '?':
default:
break;
@@ -137,6 +140,6 @@ static void
usage()
{
(void)fprintf(stderr,
- "usage: find [-HdhXx] [-f file] [file ...] expression\n");
+ "usage: find [-HdhXxW] [-f file] [file ...] expression\n");
exit(1);
}