[tor-commits] [fog/master] removed exempt env list from pt_child_env.

infinity0 at torproject.org infinity0 at torproject.org
Fri Aug 1 16:50:37 UTC 2014


commit 73869805c63e3d915c7326809529d25f855b6d5b
Author: Quinn Jarrell <qjarrell at gosynapsify.com>
Date:   Thu Jul 24 13:16:10 2014 -0400

    removed exempt env list from pt_child_env.
---
 fog-client/fog-client |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/fog-client/fog-client b/fog-client/fog-client
index c59efc3..808504c 100755
--- a/fog-client/fog-client
+++ b/fog-client/fog-client
@@ -44,11 +44,10 @@ def pt_setup_logger():
 def pt_child_env(managed_ver, env=os.environ):
     """
     Prepare the environment for a child PT process, by clearing all TOR_PT_*
-    envvars except TOR_PT_STATE_LOCATION and TOR_PT_MANAGED_TRANSPORT_VER.
+    envvars and TOR_PT_MANAGED_TRANSPORT_VER.
     """
-    exempt = ['TOR_PT_STATE_LOCATION']
     cur_env = [(k, v) for k, v in env.iteritems()
-                      if not k.startswith('TOR_PT_') or k in exempt]
+                      if not k.startswith('TOR_PT_')]
     if 'TOR_PT_STATE_LOCATION' in env:
         prev_pt_state_location = env['TOR_PT_STATE_LOCATION']
         cur_env.append(('TOR_PT_STATE_LOCATION', os.path.join(prev_pt_state_location, 'fog')))





More information about the tor-commits mailing list