projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e4787e
)
More find bugfixes.
author
Rob Landley
<rob@landley.net>
Wed, 6 Aug 2014 04:21:18 +0000
(23:21 -0500)
committer
Rob Landley
<rob@landley.net>
Wed, 6 Aug 2014 04:21:18 +0000
(23:21 -0500)
toys/posix/find.c
patch
|
blob
|
history
diff --git
a/toys/posix/find.c
b/toys/posix/find.c
index
8cacc71
..
051c270
100644
(file)
--- a/
toys/posix/find.c
+++ b/
toys/posix/find.c
@@
-263,6
+263,7
@@
static int do_find(struct dirtree *new)
}
} else if (!strcmp(s, "not")) {
if (check) not = !not;
+ continue;
// Mostly ignore NOP argument
} else if (!strcmp(s, "a") || !strcmp(s, "and")) {
if (not) goto error;
@@
-504,7
+505,7
@@
void find_main(void)
TT.filter = toys.optargs+len;
// use "." if no paths
- if (!
*ss || **ss == '-'
) {
+ if (!
len
) {
ss = (char *[]){"."};
len = 1;
}