aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/find.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-05-10 00:21:42 -0500
committerRob Landley <rob@landley.net>2015-05-10 00:21:42 -0500
commit1f5f436826505df6dfabe1de9724424fc40fae23 (patch)
treebebeeec774350ad01c68481bda59afe6f49a3fe7 /toys/posix/find.c
parentaab9164df395a4b0878b0ad930a5ec8a806a58e9 (diff)
downloadtoybox-1f5f436826505df6dfabe1de9724424fc40fae23.tar.gz
Cleanups of dirtree_start() calls. (Don't need to feed in flag values, just
symfollow true/false.)
Diffstat (limited to 'toys/posix/find.c')
-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 73502b4a..01d29993 100644
--- a/toys/posix/find.c
+++ b/toys/posix/find.c
@@ -184,7 +184,7 @@ static int do_find(struct dirtree *new)
struct double_list *argdata = TT.argdata;
char *s, **ss;
- recurse = DIRTREE_COMEAGAIN|((toys.optflags&FLAG_L) ? DIRTREE_SYMFOLLOW : 0);
+ recurse = DIRTREE_COMEAGAIN|(DIRTREE_SYMFOLLOW*!!(toys.optflags&FLAG_L));
// skip . and .. below topdir, handle -xdev and -depth
if (new) {