1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

makepkg: fix consistency of downloaded sources permissions

Running 'makepkg -g' or 'makepkg' to download source files results in
different permissions on the files if the user has a non-default umask.

Put the umask definition at the "beginning" of the makepkg script to
ensure all files generated by makepkg have a 0022 umask.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Sébastien Luttringer 2013-12-10 01:59:24 +01:00 committed by Allan McRae
parent 916c7085d8
commit 76a05e94c1

View File

@ -2544,6 +2544,9 @@ There is NO WARRANTY, to the extent permitted by law.\n")"
# PROGRAM START
# ensure we have a sane umask set
umask 0022
# determine whether we have gettext; make it a no-op if we do not
if ! type -p gettext >/dev/null; then
gettext() {
@ -2979,9 +2982,6 @@ else
fi
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"
chmod a-s "$srcdir"