chmod: no S_ISVTX
This commit is contained in:
parent
3172b979dc
commit
04bac53826
8
chmod.1
8
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
|
||||
|
|
1
chmod.c
1
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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user