summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-12-09 00:30:46 +0000
committerZac Medico <zmedico@gentoo.org>2009-12-09 00:30:46 +0000
commite4bd03ae54359072a26e767aa68a9a37d7a65488 (patch)
treed05cf083d6dbc921b998d9c38c6b4b6a007fadc3 /pym
parent3a3f1b1f3b61bda1591706d67e17daa5ca5f8d1a (diff)
downloadportage-e4bd03ae54359072a26e767aa68a9a37d7a65488.tar.gz
portage-e4bd03ae54359072a26e767aa68a9a37d7a65488.tar.bz2
portage-e4bd03ae54359072a26e767aa68a9a37d7a65488.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. svn path=/main/trunk/; revision=14973
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 45e5407f8..7b892a652 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",