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>
This commit is contained in:
parent
14ee1be1ef
commit
17180890a5
1 changed files with 3 additions and 3 deletions
|
@ -675,9 +675,6 @@ run_build() {
|
||||||
msg "$(gettext "Starting build()...")"
|
msg "$(gettext "Starting build()...")"
|
||||||
cd "$srcdir"
|
cd "$srcdir"
|
||||||
|
|
||||||
# ensure we have a sane umask set
|
|
||||||
umask 0022
|
|
||||||
|
|
||||||
# ensure all necessary build variables are exported
|
# ensure all necessary build variables are exported
|
||||||
export CFLAGS CXXFLAGS MAKEFLAGS CHOST
|
export CFLAGS CXXFLAGS MAKEFLAGS CHOST
|
||||||
|
|
||||||
|
@ -1417,6 +1414,9 @@ else
|
||||||
warning "$(gettext "pacman was not found in PATH; skipping dependency checks.")"
|
warning "$(gettext "pacman was not found in PATH; skipping dependency checks.")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ensure we have a sane umask set
|
||||||
|
umask 0022
|
||||||
|
|
||||||
# get back to our src directory so we can begin with sources
|
# get back to our src directory so we can begin with sources
|
||||||
mkdir -p "$srcdir"
|
mkdir -p "$srcdir"
|
||||||
cd "$srcdir"
|
cd "$srcdir"
|
||||||
|
|
Loading…
Add table
Reference in a new issue