summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2008-02-08 22:34:51 +0100
committerDan McGee <dan@archlinux.org>2008-02-11 20:40:43 -0600
commit17180890a58365d717a8f79d2e60f5af4f829eef (patch)
tree373f84656e1260d86f9924c1414bb94e205d7ed5 /scripts
parent14ee1be1ef21e09a84f01dc9623e8513218709d4 (diff)
downloadpacman-17180890a58365d717a8f79d2e60f5af4f829eef.tar.xz
makepkg : set sane umask before source extraction.
This fixes FS#9242 and FS#9362. Set umask before the sources are extracted, and after the /etc/profile.d/* files are sourced in handledeps. This sourcing of profile.d files is why umask was moved to the build function in the first place, as can be seen in commit ac965ed401. Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index cecda1d2..090ba5df 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -675,9 +675,6 @@ run_build() {
msg "$(gettext "Starting build()...")"
cd "$srcdir"
- # ensure we have a sane umask set
- umask 0022
-
# ensure all necessary build variables are exported
export CFLAGS CXXFLAGS MAKEFLAGS CHOST
@@ -1417,6 +1414,9 @@ else
warning "$(gettext "pacman was not found in PATH; skipping dependency checks.")"
fi
+# ensure we have a sane umask set
+umask 0022
+
# get back to our src directory so we can begin with sources
mkdir -p "$srcdir"
cd "$srcdir"