aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/ls.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/ls.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/ls.c')
-rw-r--r--toys/posix/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/ls.c b/toys/posix/ls.c
index 3e5d3910..38db9977 100644
--- a/toys/posix/ls.c
+++ b/toys/posix/ls.c
@@ -329,7 +329,7 @@ static void listfiles(int dirfd, struct dirtree *indir)
} else {
// Read directory contents. We dup() the fd because this will close it.
indir->data = dup(dirfd);
- dirtree_recurse(indir, filter, (flags&FLAG_L) ? DIRTREE_SYMFOLLOW : 0);
+ dirtree_recurse(indir, filter, DIRTREE_SYMFOLLOW*!!(flags&FLAG_L));
}
// Copy linked list to array and sort it. Directories go in array because