From 44b89867e0bfc085083e17657697af74e273a534 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 2 Aug 2014 19:54:38 -0500 Subject: Missed checking in dirtree_recurse() change (now needs specific DIRTREE_SYMFOLLOW value, not just true/false). --- toys/posix/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3