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:
parent
916c7085d8
commit
76a05e94c1
@ -2544,6 +2544,9 @@ There is NO WARRANTY, to the extent permitted by law.\n")"
|
|||||||
|
|
||||||
# PROGRAM START
|
# 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
|
# determine whether we have gettext; make it a no-op if we do not
|
||||||
if ! type -p gettext >/dev/null; then
|
if ! type -p gettext >/dev/null; then
|
||||||
gettext() {
|
gettext() {
|
||||||
@ -2979,9 +2982,6 @@ else
|
|||||||
fi
|
fi
|
||||||
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"
|
||||||
chmod a-s "$srcdir"
|
chmod a-s "$srcdir"
|
||||||
|
Loading…
Reference in New Issue
Block a user