From 0229ee428b00857b7978be1aae957839e8f00ca3 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 8 Jan 2016 18:43:17 -0600 Subject: The sense of -L was flipped. --- toys/posix/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/ls.c') 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) -- cgit v1.2.3