From: Rob Landley Date: Wed, 6 Aug 2014 00:32:44 +0000 (-0500) Subject: Building busybox from source needs find -not (a synonym for posix's "!"). X-Git-Tag: android-x86-6.0-r1~400 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2c2eaba63fd42442453b1ad87fadc7d02532ea28;p=android-x86%2Fexternal-toybox.git Building busybox from source needs find -not (a synonym for posix's "!"). --- 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;