From 2c69291b26fea14b6a93f1bf6b4f0bfd7f74f7b9 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Wed, 7 Sep 2022 08:35:09 +0200 Subject: ebuild-format.tex: Document that umask is set to 022 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Portage has been doing this since 2001. Closes: https://bugs.gentoo.org/868669 Reported-by: Mike Frysinger Signed-off-by: Ulrich Müller --- ebuild-format.tex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ebuild-format.tex b/ebuild-format.tex index 25ba28e..cf06668 100644 --- a/ebuild-format.tex +++ b/ebuild-format.tex @@ -7,6 +7,9 @@ table~\ref{tab:bash-version}, or any later version. If possible, the package man the shell's compatibility level to the exact version specified. It must ensure that any such compatibility settings (e.\,g.\ the \t{BASH_COMPAT} variable) are not exported to external programs. +The file creation mask (\t{umask}) is set to \t{022} in the shell execution environment. It is +\emph{not} saved between phase functions but always reset to this initial value. + \featurelabel{failglob} For EAPIs listed such in table~\ref{tab:bash-version}, the \t{failglob} option of bash is set in the global scope of ebuilds. If set, failed pattern matches during filename expansion result in an error when the ebuild is being sourced. -- cgit v1.2.3-65-gdbad