find /tmp '(' -fstype local -o -prune ')' -a -print
SCCS-vsn: usr.bin/find/find.c 4.32
SCCS-vsn: usr.bin/find/option.c 5.3
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)find.c 4.31 (Berkeley) %G%";
+static char sccsid[] = "@(#)find.c 4.32 (Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#endif /* not lint */
#include <sys/types.h>
* plan->next pointer.
*/
for (plan = NULL; *argv;) {
* plan->next pointer.
*/
for (plan = NULL; *argv;) {
- new = find_create(&argv);
+ if (!(new = find_create(&argv)))
+ continue;
if (plan == NULL)
tail = plan = new;
else {
if (plan == NULL)
tail = plan = new;
else {
-static char sccsid[] = "@(#)option.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)option.c 5.3 (Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#endif /* not lint */
#include <sys/types.h>
"!", T_NOT, c_not, O_ZERO,
"(", T_OPENPAREN, c_openparen, O_ZERO,
")", T_CLOSEPAREN, c_closeparen, O_ZERO,
"!", T_NOT, c_not, O_ZERO,
"(", T_OPENPAREN, c_openparen, O_ZERO,
")", T_CLOSEPAREN, c_closeparen, O_ZERO,
- "a", T_AND, (PLAN *(*)())-1,O_NONE|O_OLD,
- "and", T_AND, (PLAN *(*)())-1,O_NONE|O_NEW,
+ "a", T_AND, NULL, O_NONE|O_OLD,
+ "and", T_AND, NULL, O_NONE|O_NEW,
"atime", T_ATIME, c_atime, O_ARGV,
"ctime", T_CTIME, c_ctime, O_ARGV,
"depth", T_DEPTH, c_depth, O_ZERO|O_OLD,
"atime", T_ATIME, c_atime, O_ARGV,
"ctime", T_CTIME, c_ctime, O_ARGV,
"depth", T_DEPTH, c_depth, O_ZERO|O_OLD,
}
switch(p->flags&O_MASK) {
}
switch(p->flags&O_MASK) {
+ case O_NONE:
+ new = NULL;
+ break;
case O_ZERO:
new = (p->create)();
break;
case O_ZERO:
new = (p->create)();
break;