diff --git a/chmod.1 b/chmod.1 index 8d75296..a864f29 100644 --- 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 index 1075a29..4c9d3ed 100644 --- 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;