diff --git a/man2/mkdir.2 b/man2/mkdir.2 index d517603b4..dbd9d330d 100644 --- a/man2/mkdir.2 +++ b/man2/mkdir.2 @@ -51,15 +51,17 @@ attempts to create a directory named The argument .I mode -specifies the file mode for the new directory (see +specifies the mode for the new directory (see .BR stat (2)). It is modified by the process's .I umask in the usual way: in the absence of a default ACL, the mode of the created directory is -.RI ( mode " & ~" umask " & 01777)." -Other mode bits of the created directory depend on the operating system. -For Linux, see below. +.RI ( mode " & ~" umask " & 0777)." +Whether other +.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 process. @@ -211,11 +213,10 @@ SVr4, BSD, POSIX.1-2001, POSIX.1-2008. .BR mkdirat (): POSIX.1-2008. .SH NOTES -Under Linux, apart from the permission bits, only the +Under Linux, apart from the permission bits, the .B S_ISVTX -mode bit is honored. -See also -.BR stat (2). +.I mode +bit is also honored. .PP There are many infelicities in the protocol underlying NFS. Some of these affect