1
Description: Set PYTHONPATH securely
2
A number of packages in the archive sets the PYTHONPATH environment
3
variable in an insecure way. They do something like:
5
PYTHONPATH=/spam/eggs:$PYTHONPATH
7
This is wrong, because if PYTHONPATH were originally unset or empty,
8
current working directory would be added to sys.path.
9
Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=605168;msg=5
10
Bug: http://code.google.com/p/distcc/issues/detail?id=109
11
Bug-Debian: http://bugs.debian.org/605168
12
Author: Steve M. Robbins <smr@debian.org>
13
Applied-Upstream: 3.2, http://code.google.com/p/distcc/source/detail?r=768
18
# of one asterisk) without filename expansion.
20
"PYTHONOPTIMIZE='$PYTHONOPTIMIZE' " \
21
- "PYTHONPATH='$pythonpath::$PYTHONPATH' " \
22
+ "PYTHONPATH='$pythonpath${PYTHONPATH:+:$PYTHONPATH}' " \