From 2c2eaba63fd42442453b1ad87fadc7d02532ea28 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 5 Aug 2014 19:32:44 -0500 Subject: Building busybox from source needs find -not (a synonym for posix's "!"). --- toys/posix/find.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toys/posix/find.c') diff --git a/toys/posix/find.c b/toys/posix/find.c index 6b434c1e..b1aa6845 100644 --- a/toys/posix/find.c +++ b/toys/posix/find.c @@ -251,7 +251,8 @@ static int do_find(struct dirtree *new) if (!test) test = 1; else active = 0; // decision has been made until next ")" } - + } else if (!strcmp(s, "not")) { + if (check) not = !not; // Mostly ignore NOP argument } else if (!strcmp(s, "a") || !strcmp(s, "and")) { if (not) goto error; -- cgit v1.2.3