changeset 1418:b4700f9f10ca draft

Missed checking in dirtree_recurse() change (now needs specific DIRTREE_SYMFOLLOW value, not just true/false).
author Rob Landley <rob@landley.net>
date Sat, 02 Aug 2014 19:54:38 -0500
parents 855728acd1ad
children e22e9eee9346
files toys/posix/ls.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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