From: Ben Gras Date: Sat, 1 Apr 2006 00:04:29 +0000 (+0000) Subject: make find accept -type p for FIFOs X-Git-Tag: v3.1.2a~98 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/invmod.png?a=commitdiff_plain;h=5ea6a2cd2cc8d7da17ca7a335200ddc16d085254;p=minix.git make find accept -type p for FIFOs also -type s but never match --- diff --git a/commands/simple/find.c b/commands/simple/find.c index a478452c3..d0072c7ed 100755 --- a/commands/simple/find.c +++ b/commands/simple/find.c @@ -673,6 +673,12 @@ int t; case 'f': p->n_info.n_int.n_val = S_IFREG; break; + case 'p': + p->n_info.n_int.n_val = S_IFIFO; + break; + case 's': + p->n_info.n_int.n_val = ~0; + break; case 'l': #ifdef S_IFLNK p->n_info.n_int.n_val = S_IFLNK; @@ -681,7 +687,7 @@ int t; #endif break; default: - fatal("-type needs b, c, d, f or l", ""); + fatal("-type needs b, c, d, f, p, s or l", ""); } break; case OP_USER: