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:
efb309d
)
The sense of -L was flipped.
author
Elliott Hughes
<enh@google.com>
Sat, 9 Jan 2016 00:43:17 +0000
(18:43 -0600)
committer
Rob Landley
<rob@landley.net>
Sat, 9 Jan 2016 00:43:17 +0000
(18:43 -0600)
toys/posix/ls.c
patch
|
blob
|
history
diff --git
a/toys/posix/ls.c
b/toys/posix/ls.c
index
5177dd9
..
2f44d24
100644
(file)
--- 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)