From 9664cf516ad07845a7c9f06f67241cb1373532cd Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Wed, 31 Mar 2010 17:34:11 +0200 Subject: [PATCH] python: fix to ensure that PYTHON environment variable is not leaking into the sandbox if the target is not including python at all --- python/python/parse-config | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/python/parse-config b/python/python/parse-config index 87013ee35..e76f77f68 100644 --- a/python/python/parse-config +++ b/python/python/parse-config @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../python/parse-config -# Copyright (C) 2009 The OpenSDE Project +# Copyright (C) 2009 - 2010 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -21,4 +21,7 @@ if pkginstalled -f python; then done export PYTHONPATH fi +else + # ensure that PYTHON environment variable is not leaking into the sandbox + unset PYTHON fi