All system command should have "-E -s" in the shebang line to isolate
them from the user's env vars and local site-packages directory.

-E     : ignore PYTHON* environment variables (such as PYTHONPATH)
-s     : don't add user site directory to sys.path

None of Ubuntu's Python scripts in /usr/bin and /usr/sbin are using -E
or -s.

$ for F in /usr/bin/* /usr/sbin/*; do head -n1 $F | grep -q python &&
echo $F; done

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/938869

Title:
  lsb_release crashed with SIGABRT in Py_FatalError()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/938869/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to