Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=ed8c8ae6a4bdc6992e7f59f1f0647d3a38bd87f8

commit ed8c8ae6a4bdc6992e7f59f1f0647d3a38bd87f8
Author: Michel Hermier <[email protected]>
Date:   Sun Nov 25 10:33:40 2012 +0100

scripts/makepkg

* Move umask alteration at the begin of the file.
* Move unsetting of potentially harmfull variables before
sourcing.

diff --git a/scripts/makepkg b/scripts/makepkg
index 19389e9..8ff0bce 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -25,6 +25,8 @@
#   USA.
#

+umask 0022
+
## bash's 'echo' is buggy and does not check on write() for errors
ECHO="/bin/echo"
startdir=`pwd`
@@ -615,6 +617,11 @@ buildscript_load() {

local i

+       unset pkgname pkgver pkgrel pkgdesc url license groups provides force
+       unset replaces depends removes conflicts backup source install 
makedepends
+       unset rodepends options pkdesc_localized
+       for i in `set|grep ^_F_|sed 's/\(=.*\| ()\)//'`; do unset $i; done
+
# You have to declare associative array before using them :/
declare -Ag \
_P_package_descriptions \
@@ -1982,12 +1989,6 @@ fi
ccache_clean
cache_clean

-unset pkgname pkgver pkgrel pkgdesc url license groups provides force
-unset replaces depends removes conflicts backup source install makedepends
-unset rodepends options pkdesc_localized
-for i in `set|grep ^_F_|sed 's/\(=.*\| ()\)//'`; do unset $i; done
-umask 0022
-
buildscript_download

buildscript_load
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to