Message168624
Hi I made the following patch for this issue.
It addresses the #2051 security bug. So the .pyc and .pyo files are created using the same permission as .py
The MS_WINDOWS version will chmod the permission of .pyc and .pyo files to write accessible before deleting them.
I have also created a test for it. This test needs cleaning up, because it is the first time I have written a test for cpython. I would love to have a look at the final committed test so I can learn how to make it better next time. I will also be happy to keep extending that test to make sure it covers more cases.
A great big thanks to Nick for your help! |
|
Date |
User |
Action |
Args |
2012-08-20 06:50:28 | kevin.chen | set | recipients:
+ kevin.chen, barry, amaury.forgeotdarc, ncoghlan, pitrou, eric.araujo, brian.curtin, pdsimanyi, markon, mucisland, Steve.Thompson, desolat |
2012-08-20 06:50:28 | kevin.chen | set | messageid: <1345445428.32.0.797848982508.issue6074@psf.upfronthosting.co.za> |
2012-08-20 06:50:07 | kevin.chen | link | issue6074 messages |
2012-08-20 06:50:07 | kevin.chen | create | |
|