chmod: no S_ISVTX

This commit is contained in:
Connor Lane Smith 2011-05-29 20:38:03 +01:00
parent 3172b979dc
commit 04bac53826
2 changed files with 4 additions and 5 deletions

View File

@ -12,10 +12,10 @@ changes the file mode for the given files. The
.I mode .I mode
is a four digit octal number derived from its comprising bits. is a four digit octal number derived from its comprising bits.
.P .P
The first digit defines the setuid (4), setgid (2), and sticky (1) attributes. The first digit defines the setuid (4) and setgid (2) attributes. The second
The second digit defines the owner's permissions: read (4), write (2), and digit defines the owner's permissions: read (4), write (2), and execute (1); the
execute (1); the third defines permissions for others in the file's group; and third defines permissions for others in the file's group; and the fourth for all
the fourth for all other users. Leading zeroes may be omitted. other users. Leading zeroes may be omitted.
.SH OPTIONS .SH OPTIONS
.TP .TP
.B -R, -r .B -R, -r

View File

@ -35,7 +35,6 @@ main(int argc, char *argv[])
/* posix doesn't specify modal bits */ /* posix doesn't specify modal bits */
if(octal & 04000) mode |= S_ISUID; if(octal & 04000) mode |= S_ISUID;
if(octal & 02000) mode |= S_ISGID; if(octal & 02000) mode |= S_ISGID;
if(octal & 01000) mode |= S_ISVTX;
if(octal & 00400) mode |= S_IRUSR; if(octal & 00400) mode |= S_IRUSR;
if(octal & 00200) mode |= S_IWUSR; if(octal & 00200) mode |= S_IWUSR;
if(octal & 00100) mode |= S_IXUSR; if(octal & 00100) mode |= S_IXUSR;