summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2010-11-07 19:24:18 +0000
committerAlexis Ballier <aballier@gentoo.org>2010-11-07 19:24:18 +0000
commit1ec665f71a98654242bab5454fc40f2442028bdc (patch)
tree09c70c93af60c5b6b814883d89dda01c0c8edb98 /eclass
parentConvert media-libs/jpeg to virtual/jpeg (diff)
downloadhistorical-1ec665f71a98654242bab5454fc40f2442028bdc.tar.gz
historical-1ec665f71a98654242bab5454fc40f2442028bdc.tar.bz2
historical-1ec665f71a98654242bab5454fc40f2442028bdc.zip
Set umask before unpacking to avoid installing world writable files, bugs #338881, #310039 and #309997
Diffstat (limited to 'eclass')
-rw-r--r--eclass/texlive-module.eclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
index 702be47d6cf2..a2de6224dc56 100644
--- a/eclass/texlive-module.eclass
+++ b/eclass/texlive-module.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.55 2010/10/24 16:26:36 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.56 2010/11/07 19:24:18 aballier Exp $
# @ECLASS: texlive-module.eclass
# @MAINTAINER:
@@ -114,6 +114,9 @@ RELOC_TARGET=texmf-dist
texlive-module_src_unpack() {
if has "${EAPI:-0}" 0 1 2 ; then
local i s
+ # Avoid installing world writable files
+ # Bugs #309997, #310039, #338881
+ umask 022
for i in ${A}
do
s="${DISTDIR%/}/${i}"