From 1f5f436826505df6dfabe1de9724424fc40fae23 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 10 May 2015 00:21:42 -0500 Subject: Cleanups of dirtree_start() calls. (Don't need to feed in flag values, just symfollow true/false.) --- toys/posix/find.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/find.c') 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) { -- cgit v1.2.3