From f018e0d486b8ec6b6fc78346534f71af6216614a Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Tue, 16 Nov 2021 11:06:29 +0000 Subject: =?UTF-8?q?Correct=20documentation=20of=20=E2=80=98mkdir=E2=80=99?= =?UTF-8?q?=20w.r.t.=20the=20umask.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * doc/ref/posix.texi (mkdir): Note that the umask is applied even if the mode argument is set. Signed-off-by: Ludovic Courtès --- doc/ref/posix.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/ref/posix.texi b/doc/ref/posix.texi index 642b84bee..93bb4d459 100644 --- a/doc/ref/posix.texi +++ b/doc/ref/posix.texi @@ -920,7 +920,8 @@ the directory referred to by the file port @var{dir}. Create a new directory named by @var{path}. If @var{mode} is omitted then the permissions of the directory are set to @code{#o777} masked with the current umask (@pxref{Processes, @code{umask}}). -Otherwise they are set to the value specified with @var{mode}. +Otherwise they are set to the value specified with @var{mode} +masked with the current umask. The return value is unspecified. @end deffn -- cgit v1.2.1