diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-28 12:31:21 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-28 12:31:21 +0000 |
commit | 038a5a4cd87f32548052faede06c75153521be74 (patch) | |
tree | 4f12e83aa13107ac8d4e28fda7b5567d30a5478a | |
parent | b37b81cfca9ff2e0e829ab2cea5294a307877e82 (diff) |
support whiteouts; netbsd pr#2394; mike.long@analog.com
-rw-r--r-- | usr.bin/find/find.1 | 4 | ||||
-rw-r--r-- | usr.bin/find/function.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1 index 5bb61cee362..788e5582167 100644 --- a/usr.bin/find/find.1 +++ b/usr.bin/find/find.1 @@ -33,7 +33,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)find.1 8.1 (Berkeley) 6/6/93 -.\" $Id: find.1,v 1.2 1996/01/15 01:11:16 deraadt Exp $ +.\" $Id: find.1,v 1.3 1996/05/28 12:31:18 deraadt Exp $ .\" .Dd June 6, 1993 .Dt FIND 1 @@ -298,6 +298,8 @@ True if the file is of the specified type. Possible file types are as follows: .Pp .Bl -tag -width flag -offset indent -compact +.It Cm W +whiteout .It Cm b block special .It Cm c diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index 884602ab326..160405696bd 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -36,7 +36,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)function.c 8.1 (Berkeley) 6/6/93";*/ -static char rcsid[] = "$Id: function.c,v 1.1 1995/10/18 08:45:13 deraadt Exp $"; +static char rcsid[] = "$Id: function.c,v 1.2 1996/05/28 12:31:20 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -875,6 +875,11 @@ c_type(typestring) ftsoptions &= ~FTS_NOSTAT; switch (typestring[0]) { +#ifdef S_IFWHT + case 'W': + mask = S_IFWHT; + break; +#endif case 'b': mask = S_IFBLK; break; |