[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

Nick Coghlan report at bugs.python.org
Mon Aug 20 03:40:05 CEST 2012


Nick Coghlan added the comment:

(Note: Kevin is looking into this at the PyConAU sprints)

New test case needed (probably in Lib/test/test_import.py):

- create .py file as 0400
- import it
- check .pyc (or .pyo) file is 0600

That ensures the #2501 security bug remains fixed, while also addressing this problem.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6074>
_______________________________________


More information about the Python-bugs-list mailing list