aboutsummaryrefslogtreecommitdiff
path: root/toys/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/ls.c')
-rw-r--r--toys/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/ls.c b/toys/ls.c
index 6d0050fd..561b3534 100644
--- a/toys/ls.c
+++ b/toys/ls.c
@@ -374,7 +374,7 @@ static void listfiles(int dirfd, struct dirtree *indir)
c = i%3;
if (!c && (mode & (1<<((d=i/3)+9)))) {
c = "tss"[d];
- if (!bit) c &= 0x20;
+ if (!bit) c &= ~0x20;
} else c = bit ? "xwr"[c] : '-';
perm[9-i] = c;
}