diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-03-17 17:36:31 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-03-17 17:36:31 +0000 |
commit | c9110c14acb8acd5982ff60e15ff39880b636c71 (patch) | |
tree | dfd4b33efa4388d6ede9bae83e2906281d531a9e /usr.bin/find/function.c | |
parent | da80b969266b1dc4a1512202f550bd045cb66323 (diff) |
Add -W option so -type W gets a chance to work.
Diffstat (limited to 'usr.bin/find/function.c')
-rw-r--r-- | usr.bin/find/function.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index d7f4c6bf4f3..0237c2a3a37 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -1,4 +1,4 @@ -/* $OpenBSD: function.c,v 1.12 1998/09/26 09:04:43 deraadt Exp $ */ +/* $OpenBSD: function.c,v 1.13 1999/03/17 17:36:30 espie Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -38,7 +38,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)function.c 8.1 (Berkeley) 6/6/93";*/ -static char rcsid[] = "$OpenBSD: function.c,v 1.12 1998/09/26 09:04:43 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: function.c,v 1.13 1999/03/17 17:36:30 espie Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -1170,6 +1170,8 @@ c_type(typestring) #ifdef S_IFWHT case 'W': mask = S_IFWHT; + if ((ftsoptions & FTS_WHITEOUT) == 0) + warnx("-type W without -W is a no-op"); break; #endif case 'b': |