diff options
author | Rob Landley <rob@landley.net> | 2015-05-10 00:21:42 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-05-10 00:21:42 -0500 |
commit | 1f5f436826505df6dfabe1de9724424fc40fae23 (patch) | |
tree | bebeeec774350ad01c68481bda59afe6f49a3fe7 /toys/posix/ls.c | |
parent | aab9164df395a4b0878b0ad930a5ec8a806a58e9 (diff) | |
download | toybox-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.c | 2 |
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 |