From eb29694f22c26730a3522f9bc98b54dffda257a3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 2 Jan 2011 16:15:45 -0800 Subject: create_trees: whitelist SSH_AGENT_PID/AUTH_SOCK This variables can be used for fetching from binhost. --- pym/portage/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 4731db506..374d077f1 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -517,7 +517,8 @@ def create_trees(config_root=None, target_root=None, trees=None): # environment to apply to the config that's associated # with ROOT != "/", so pass a nearly empty dict for the env parameter. clean_env = {} - for k in ('PATH', 'PORTAGE_GRPNAME', 'PORTAGE_USERNAME', 'TERM', + for k in ('PATH', 'PORTAGE_GRPNAME', 'PORTAGE_USERNAME', + 'SSH_AGENT_PID', 'SSH_AUTH_SOCK', 'TERM', 'ftp_proxy', 'http_proxy', 'no_proxy'): v = settings.get(k) if v is not None: -- cgit v1.2.3-1-g7c22