aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/ls.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-01-08 18:43:17 -0600
committerRob Landley <rob@landley.net>2016-01-08 18:43:17 -0600
commit0229ee428b00857b7978be1aae957839e8f00ca3 (patch)
tree1ae481e23c4b6bc3953ac046871beecd4edc071a /toys/posix/ls.c
parentefb309d4cdb2f4c3926b0550d9dc1661c1e4a091 (diff)
downloadtoybox-0229ee428b00857b7978be1aae957839e8f00ca3.tar.gz
The sense of -L was flipped.
Diffstat (limited to 'toys/posix/ls.c')
-rw-r--r--toys/posix/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/ls.c b/toys/posix/ls.c
index 5177dd9a..2f44d247 100644
--- a/toys/posix/ls.c
+++ b/toys/posix/ls.c
@@ -192,7 +192,7 @@ static int filter(struct dirtree *new)
// fchmodat(), mknodat(), readlinkat() so we could do this without
// even O_PATH? But no, this is 1990's tech.)
int fd = openat(dirtree_parentfd(new), new->name,
- O_PATH|(O_NOFOLLOW*!!(toys.optflags&FLAG_L)));
+ O_PATH|(O_NOFOLLOW*!(toys.optflags&FLAG_L)));
if (fd != -1) {
if (-1 == lsm_fget_context(fd, (char **)&new->extra) && errno == EBADF)