sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 04bac53826813eda5d561f37e03869b7cd16fcaa
parent 3172b979dcac67019a264632f8172ca6399a3944
Author: Connor Lane Smith <cls@lubutu.com>
Date:   Sun, 29 May 2011 20:38:03 +0100

chmod: no S_ISVTX
Diffstat:
Mchmod.1 | 8++++----
Mchmod.c | 1-
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/chmod.1 b/chmod.1 @@ -12,10 +12,10 @@ changes the file mode for the given files. The .I mode is a four digit octal number derived from its comprising bits. .P -The first digit defines the setuid (4), setgid (2), and sticky (1) attributes. -The second digit defines the owner's permissions: read (4), write (2), and -execute (1); the third defines permissions for others in the file's group; and -the fourth for all other users. Leading zeroes may be omitted. +The first digit defines the setuid (4) and setgid (2) attributes. The second +digit defines the owner's permissions: read (4), write (2), and execute (1); the +third defines permissions for others in the file's group; and the fourth for all +other users. Leading zeroes may be omitted. .SH OPTIONS .TP .B -R, -r diff --git a/chmod.c b/chmod.c @@ -35,7 +35,6 @@ main(int argc, char *argv[]) /* posix doesn't specify modal bits */ if(octal & 04000) mode |= S_ISUID; if(octal & 02000) mode |= S_ISGID; - if(octal & 01000) mode |= S_ISVTX; if(octal & 00400) mode |= S_IRUSR; if(octal & 00200) mode |= S_IWUSR; if(octal & 00100) mode |= S_IXUSR;