From e3c2575f92a3e55359cc7cb316ff78f78462ef8a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 1 Dec 2007 22:29:33 +0000 Subject: * whitelist some misc variables from the calling environment * blacklist the same variables in save_ebuild_env() so that the latest values from the calling environment always override those from the ebuild environment (trunk r8796) svn path=/main/branches/2.1.2/; revision=8797 --- bin/isolated-functions.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/isolated-functions.sh') diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 0147a0b16..fc832a51f 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -405,6 +405,10 @@ save_ebuild_env() { unset COLORTERM DISPLAY EDITOR LESS LESSOPEN LOGNAME LS_COLORS PAGER \ TERM TERMCAP USER + # other variables inherited from the calling environment + unset CVS_RSH ECHANGELOG_USER GPG_AGENT_INFO \ + SSH_AGENT_PID SSH_AUTH_SOCK STY WINDOW XAUTHORITY + # There's no need to bloat environment.bz2 with internally defined # functions and variables, so filter them out if possible. -- cgit v1.2.3-1-g7c22