summaryrefslogtreecommitdiffstats
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in4
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
}