diff options
-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 |