0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

runtime(doc): clarify that a umask is applied to mkdir()

fixes: #16849

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt 2025-03-11 21:14:31 +01:00
parent 6763b0ee95
commit 0a336ccb57
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -1,4 +1,4 @@
*builtin.txt* For Vim version 9.1. Last change: 2025 Feb 23 *builtin.txt* For Vim version 9.1. Last change: 2025 Mar 11
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -7587,9 +7587,8 @@ mkdir({name} [, {flags} [, {prot}]]) *mkdir()* *E739*
If {prot} is given it is used to set the protection bits of If {prot} is given it is used to set the protection bits of
the new directory. The default is 0o755 (rwxr-xr-x: r/w for the new directory. The default is 0o755 (rwxr-xr-x: r/w for
the user, readable for others). Use 0o700 to make it the user, readable for others). Use 0o700 to make it
unreadable for others. This is only used for the last part of unreadable for others. This is used for the newly created
{name}. Thus if you create /tmp/foo/bar then /tmp/foo will be directories. Note an umask is applied to {prot} (on Unix).
created with 0o755.
Example: > Example: >
:call mkdir($HOME .. "/tmp/foo/bar", "p", 0o700) :call mkdir($HOME .. "/tmp/foo/bar", "p", 0o700)