diff options
| author | Elliott Hughes <enh@google.com> | 2016-01-08 18:43:17 -0600 | 
|---|---|---|
| committer | Rob Landley <rob@landley.net> | 2016-01-08 18:43:17 -0600 | 
| commit | 0229ee428b00857b7978be1aae957839e8f00ca3 (patch) | |
| tree | 1ae481e23c4b6bc3953ac046871beecd4edc071a | |
| parent | efb309d4cdb2f4c3926b0550d9dc1661c1e4a091 (diff) | |
| download | toybox-0229ee428b00857b7978be1aae957839e8f00ca3.tar.gz | |
The sense of -L was flipped.
| -rw-r--r-- | toys/posix/ls.c | 2 | 
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) | 
