makepkg: set umask 0022 again after syncing deps

makepkg configures the umask 0022 as a sane default for building
packages. After installing dependencies, it sources `/etc/profile`
again. If the user configured a umask other than Arch's default of
0022 (or 022) in `/etc/profile`, this sane default is now gone and
needs to be set again.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Felix Glaser 2018-02-26 00:10:51 +01:00 committed by Allan McRae
parent 5c1853124d
commit a5dd5d4141

View file

@ -280,6 +280,10 @@ handle_deps() {
source /etc/profile &>/dev/null source /etc/profile &>/dev/null
eval "$shellopts" eval "$shellopts"
# umask might have been changed in /etc/profile
# ensure that sane default is set again
umask 0022
return $R_DEPS_SATISFIED return $R_DEPS_SATISFIED
} }