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

Nick Coghlan report at bugs.python.org
Fri Oct 19 13:02:09 CEST 2012


Nick Coghlan added the comment:

Interesting - the test case I wrote for this was failing on Linux as well. Same fix worked both places, though (i.e. ensuring S_IWUSR is always set on .pyc files so they can be updated properly)

2.7 update incoming, we'll see what the Windows buildbots have to say before doing anything to 3.x.

(Kevin: I didn't end up using your patch, as I decided it was simpler to just create the files with the user's write permission set. This doesn't weaken the security, as any attacker running with the user's privileges could just change the permissions anyway)

----------

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


More information about the Python-bugs-list mailing list