From 31f49e7968db5d0d569513992baa6d25dde8aa58 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 21 Jul 2012 22:45:05 -0500 Subject: Make chmod +w respect umask, implement +s and +t, fix ls to show suid/sgid/stid without x bit. --- toys/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') 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; } -- cgit v1.2.3