From 76cc2e2bcddef47176dfeef59c5d4ba28880f219 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 12 Jul 2016 15:48:25 -0500 Subject: Implement NOP find -noleaf --- toys/posix/find.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/find.c') diff --git a/toys/posix/find.c b/toys/posix/find.c index 189773c3..a1821ca3 100644 --- a/toys/posix/find.c +++ b/toys/posix/find.c @@ -295,7 +295,7 @@ static int do_find(struct dirtree *new) if (check) not = !not; continue; // Mostly ignore NOP argument - } else if (!strcmp(s, "a") || !strcmp(s, "and")) { + } else if (!strcmp(s, "a") || !strcmp(s, "and") || !strcmp(s, "noleaf")) { if (not) goto error; } else if (!strcmp(s, "print") || !strcmp("print0", s)) { -- cgit v1.2.3