diff options
author | Felix Glaser <neindochoh.kraut@mailbox.org> | 2018-02-26 00:10:51 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2018-03-14 03:52:09 +0100 |
commit | a5dd5d41412930000d4e5ca602365639c7ccec86 (patch) | |
tree | 5ae3b58e2794b3be3bc5921c5f67ee2997556681 | |
parent | 5c1853124dcaf5d744f90f293801b0ac741674ff (diff) | |
download | pacman-a5dd5d41412930000d4e5ca602365639c7ccec86.tar.gz pacman-a5dd5d41412930000d4e5ca602365639c7ccec86.tar.xz |
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>
-rw-r--r-- | scripts/makepkg.sh.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 5e3af337..b98a42a8 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -280,6 +280,10 @@ handle_deps() { source /etc/profile &>/dev/null eval "$shellopts" + # umask might have been changed in /etc/profile + # ensure that sane default is set again + umask 0022 + return $R_DEPS_SATISFIED } |