diff --git a/doc/builtin.jax b/doc/builtin.jax index dd5804f1a..8369f1358 100644 --- a/doc/builtin.jax +++ b/doc/builtin.jax @@ -1,4 +1,4 @@ -*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Feb 23 +*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Mar 11 VIMリファレンスマニュアル by Bram Moolenaar @@ -7475,11 +7475,11 @@ mkdir({name} [, {flags} [, {prot}]]) *mkdir()* *E739* < Note defer のスケジュール設定が失敗した場合、ディレクトリは削 除されないことに注意。これはメモリ不足の場合にのみ発生する。 - {prot}は作成するディレクトリの保護ビット。デフォルトは0o755 - (rwxr-xr-x: 所有者は読み書き可能、他の人は読み込み可能)。 - 他の人が読み込めないようにするには0o700とすること。{prot} は - {name} の最後の部分にのみ適用される。なので、/tmp/foo/bar - を作成すると /tmp/foo は 0o755 で作成される。 + {prot} は作成するディレクトリの保護ビット。デフォルトは 0o755 + (rwxr-xr-x: 所有者は読み書き可能、他の人は読み込み可能)。他の + 人が読み込めないようにするには 0o700 とすること。これは新しく + 作成されたディレクトリに使用される。Note: (Unix の場合) umask + は {prot} に適用されることに注意。 例: > :call mkdir($HOME .. "/tmp/foo/bar", "p", 0o700) diff --git a/en/builtin.txt b/en/builtin.txt index 80b8a9cc4..b7df7c561 100644 --- a/en/builtin.txt +++ b/en/builtin.txt @@ -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 @@ -7587,9 +7587,8 @@ mkdir({name} [, {flags} [, {prot}]]) *mkdir()* *E739* 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. This is only used for the last part of - {name}. Thus if you create /tmp/foo/bar then /tmp/foo will be - created with 0o755. + unreadable for others. This is used for the newly created + directories. Note: umask is applied to {prot} (on Unix). Example: > :call mkdir($HOME .. "/tmp/foo/bar", "p", 0o700)