Only append : when LD_LIBRARY_PATH is set, to avoid having it default to . and
execute arbitrary code. This fixes Debian bug 598421 and CVE vulnerability
CVE-2010-3377 .
export PATH=${MY_PATH}:${PATH}
fi
if [ "${MY_LD_LIBRARY_PATH}" != "" ] ; then
- export LD_LIBRARY_PATH=${MY_LD_LIBRARY_PATH}:${LD_LIBRARY_PATH}
+ export LD_LIBRARY_PATH=${MY_LD_LIBRARY_PATH}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
fi
if [ "${PYTHONPATH}" != "" ] ; then
export PYTHONPATH=${MY_PYTHONPATH}:${PYTHONPATH}