This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kevin.chen
Recipients Steve.Thompson, amaury.forgeotdarc, barry, brian.curtin, desolat, eric.araujo, kevin.chen, markon, mucisland, ncoghlan, pdsimanyi, pitrou
Date 2012-08-20.06:50:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345445428.32.0.797848982508.issue6074@psf.upfronthosting.co.za>
In-reply-to
Content
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!
History
Date User Action Args
2012-08-20 06:50:28kevin.chensetrecipients: + kevin.chen, barry, amaury.forgeotdarc, ncoghlan, pitrou, eric.araujo, brian.curtin, pdsimanyi, markon, mucisland, Steve.Thompson, desolat
2012-08-20 06:50:28kevin.chensetmessageid: <1345445428.32.0.797848982508.issue6074@psf.upfronthosting.co.za>
2012-08-20 06:50:07kevin.chenlinkissue6074 messages
2012-08-20 06:50:07kevin.chencreate