diff options
author | Rob Landley <rob@landley.net> | 2014-08-02 19:54:38 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-08-02 19:54:38 -0500 |
commit | 44b89867e0bfc085083e17657697af74e273a534 (patch) | |
tree | dc9c5df4af22ebdb7e6e59c41be5e7b46ffcd849 | |
parent | dc48a0c7c5d5bd001adfe2827f357aaaf7dcbb7c (diff) | |
download | toybox-44b89867e0bfc085083e17657697af74e273a534.tar.gz |
Missed checking in dirtree_recurse() change (now needs specific DIRTREE_SYMFOLLOW value, not just true/false).
-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 3a7de63d..ee8dbc09 100644 --- a/toys/posix/ls.c +++ b/toys/posix/ls.c @@ -276,7 +276,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_recurse(indir, filter, (flags&FLAG_L) ? DIRTREE_SYMFOLLOW : 0); } // Copy linked list to array and sort it. Directories go in array because |