OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc48a0c
)
Missed checking in dirtree_recurse() change (now needs specific DIRTREE_SYMFOLLOW...
author
Rob Landley
<rob@landley.net>
Sun, 3 Aug 2014 00:54:38 +0000
(19:54 -0500)
committer
Rob Landley
<rob@landley.net>
Sun, 3 Aug 2014 00:54:38 +0000
(19:54 -0500)
toys/posix/ls.c
patch
|
blob
|
history
diff --git
a/toys/posix/ls.c
b/toys/posix/ls.c
index
3a7de63
..
ee8dbc0
100644
(file)
--- 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