Introduction
Introduction Statistics Contact Development Disclaimer Help
libutil/mode: Fix sticky bit parsing - sbase - suckless unix tools
git clone git://git.suckless.org/sbase
Log
Files
Refs
README
LICENSE
---
commit 9d9afe00fb2afbc2b6bfd364f04f108adb917d43
parent 556797632991c4458682aa4cc7399a69ac7c77a8
Author: Tavian Barnes <[email protected]>
Date: Sat, 22 Feb 2025 13:14:48 +0100
libutil/mode: Fix sticky bit parsing
Diffstat:
M libutil/mode.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libutil/mode.c b/libutil/mode.c
@@ -40,10 +40,10 @@ next:
who |= S_IRWXG|S_ISGID;
continue;
case 'o':
- who |= S_IRWXO;
+ who |= S_IRWXO|S_ISVTX;
continue;
case 'a':
- who |= S_IRWXU|S_ISUID|S_IRWXG|S_ISGID|S_IRWXO;
+ who |= S_IRWXU|S_ISUID|S_IRWXG|S_ISGID|S_IRWXO|S_ISVTX;
continue;
}
break;
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.