OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fdc1fe
)
Building busybox from source needs find -not (a synonym for posix's "!").
author
Rob Landley
<rob@landley.net>
Wed, 6 Aug 2014 00:32:44 +0000
(19:32 -0500)
committer
Rob Landley
<rob@landley.net>
Wed, 6 Aug 2014 00:32:44 +0000
(19:32 -0500)
toys/posix/find.c
patch
|
blob
|
history
diff --git
a/toys/posix/find.c
b/toys/posix/find.c
index
6b434c1
..
b1aa684
100644
(file)
--- 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;