mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
vim-patch:0a336cc: runtime(doc): clarify that a umask is applied to mkdir() (#32845)
fixes: vim/vim#16849
0a336ccb57
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
7
runtime/doc/builtin.txt
generated
7
runtime/doc/builtin.txt
generated
@ -6796,10 +6796,9 @@ mkdir({name} [, {flags} [, {prot}]]) *mkdir()* *E73
|
||||
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 user, readable for others). Use 0o700 to make it
|
||||
unreadable for others.
|
||||
|
||||
{prot} is applied for all parts of {name}. Thus if you create
|
||||
/tmp/foo/bar then /tmp/foo will be created with 0o700. Example: >vim
|
||||
unreadable for others. This is used for the newly created
|
||||
directories. Note an umask is applied to {prot} (on Unix).
|
||||
Example: >vim
|
||||
call mkdir($HOME .. "/tmp/foo/bar", "p", 0o700)
|
||||
|
||||
< This function is not available in the |sandbox|.
|
||||
|
7
runtime/lua/vim/_meta/vimfn.lua
generated
7
runtime/lua/vim/_meta/vimfn.lua
generated
@ -6173,10 +6173,9 @@ function vim.fn.min(expr) end
|
||||
--- 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 user, readable for others). Use 0o700 to make it
|
||||
--- unreadable for others.
|
||||
---
|
||||
--- {prot} is applied for all parts of {name}. Thus if you create
|
||||
--- /tmp/foo/bar then /tmp/foo will be created with 0o700. Example: >vim
|
||||
--- unreadable for others. This is used for the newly created
|
||||
--- directories. Note an umask is applied to {prot} (on Unix).
|
||||
--- Example: >vim
|
||||
--- call mkdir($HOME .. "/tmp/foo/bar", "p", 0o700)
|
||||
---
|
||||
--- <This function is not available in the |sandbox|.
|
||||
|
@ -7550,10 +7550,9 @@ M.funcs = {
|
||||
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 user, readable for others). Use 0o700 to make it
|
||||
unreadable for others.
|
||||
|
||||
{prot} is applied for all parts of {name}. Thus if you create
|
||||
/tmp/foo/bar then /tmp/foo will be created with 0o700. Example: >vim
|
||||
unreadable for others. This is used for the newly created
|
||||
directories. Note an umask is applied to {prot} (on Unix).
|
||||
Example: >vim
|
||||
call mkdir($HOME .. "/tmp/foo/bar", "p", 0o700)
|
||||
|
||||
<This function is not available in the |sandbox|.
|
||||
|
Reference in New Issue
Block a user