aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-07-12 15:48:25 -0500
committerRob Landley <rob@landley.net>2016-07-12 15:48:25 -0500
commit76cc2e2bcddef47176dfeef59c5d4ba28880f219 (patch)
tree366909cdbd4df199ab60ee91597c35d6e6c93cb2 /toys/posix
parent30454a4ca132ea76851f799546f67f98b074f650 (diff)
downloadtoybox-76cc2e2bcddef47176dfeef59c5d4ba28880f219.tar.gz
Implement NOP find -noleaf
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/find.c2
1 files changed, 1 insertions, 1 deletions
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)) {