mirror of https://github.com/mkerrisk/man-pages
mkdir.2: Further tweaks to text on S_ISVTX and 'mode' argument
Reported-by: Andreas Grünbacher <andreas.gruenbacher@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
1dab8564e2
commit
5ec64a3abd
17
man2/mkdir.2
17
man2/mkdir.2
|
@ -51,15 +51,17 @@ attempts to create a directory named
|
||||||
|
|
||||||
The argument
|
The argument
|
||||||
.I mode
|
.I mode
|
||||||
specifies the file mode for the new directory (see
|
specifies the mode for the new directory (see
|
||||||
.BR stat (2)).
|
.BR stat (2)).
|
||||||
It is modified by the process's
|
It is modified by the process's
|
||||||
.I umask
|
.I umask
|
||||||
in the usual way: in the absence of a default ACL, the mode of the
|
in the usual way: in the absence of a default ACL, the mode of the
|
||||||
created directory is
|
created directory is
|
||||||
.RI ( mode " & ~" umask " & 01777)."
|
.RI ( mode " & ~" umask " & 0777)."
|
||||||
Other mode bits of the created directory depend on the operating system.
|
Whether other
|
||||||
For Linux, see below.
|
.I mode
|
||||||
|
bits are honored for the created directory depends on the operating system.
|
||||||
|
For Linux, see NOTES below.
|
||||||
|
|
||||||
The newly created directory will be owned by the effective user ID of the
|
The newly created directory will be owned by the effective user ID of the
|
||||||
process.
|
process.
|
||||||
|
@ -211,11 +213,10 @@ SVr4, BSD, POSIX.1-2001, POSIX.1-2008.
|
||||||
.BR mkdirat ():
|
.BR mkdirat ():
|
||||||
POSIX.1-2008.
|
POSIX.1-2008.
|
||||||
.SH NOTES
|
.SH NOTES
|
||||||
Under Linux, apart from the permission bits, only the
|
Under Linux, apart from the permission bits, the
|
||||||
.B S_ISVTX
|
.B S_ISVTX
|
||||||
mode bit is honored.
|
.I mode
|
||||||
See also
|
bit is also honored.
|
||||||
.BR stat (2).
|
|
||||||
.PP
|
.PP
|
||||||
There are many infelicities in the protocol underlying NFS.
|
There are many infelicities in the protocol underlying NFS.
|
||||||
Some of these affect
|
Some of these affect
|
||||||
|
|
Loading…
Reference in New Issue