# HG changeset patch # User Rob Landley # Date 1407027278 18000 # Node ID b4700f9f10ca38cbc9af6a41fb41db497e8c3614 # Parent 855728acd1ad25ea8b7d8cc93ead708d510511ad Missed checking in dirtree_recurse() change (now needs specific DIRTREE_SYMFOLLOW value, not just true/false). diff -r 855728acd1ad -r b4700f9f10ca toys/posix/ls.c --- a/toys/posix/ls.c Sat Aug 02 19:52:44 2014 -0500 +++ b/toys/posix/ls.c Sat Aug 02 19:54:38 2014 -0500 @@ -276,7 +276,7 @@ } 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