summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-12-10 01:04:26 +0000
committerZac Medico <zmedico@gentoo.org>2009-12-10 01:04:26 +0000
commit920e551da78dcd0099ab0432f4d4a4b20c7f5051 (patch)
tree3bf9d8f651b0608def23f33f9e5ef53e302ece0b /pym
parentabd5377f55f1a3746e20087d9f10e88e2e522115 (diff)
downloadportage-920e551da78dcd0099ab0432f4d4a4b20c7f5051.tar.gz
portage-920e551da78dcd0099ab0432f4d4a4b20c7f5051.tar.bz2
portage-920e551da78dcd0099ab0432f4d4a4b20c7f5051.zip
Fix handling for TEMP, TMP, and TMPDIR variables:
* Add to whitelist so current values are always used. * Always filter them from the saved environment. * Always add thier values to SANDBOX_WRITE. (trunk r14973) svn path=/main/branches/2.1.7/; revision=15007
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 333a24294..0690267fa 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -1432,6 +1432,11 @@ class config(object):
"TERM", "TERMCAP", "USER",
]
+ # tempdir settings
+ _environ_whitelist += [
+ "TMPDIR", "TEMP", "TMP",
+ ]
+
# other variables inherited from the calling environment
_environ_whitelist += [
"CVS_RSH", "ECHANGELOG_USER",