Message169233
| Author |
uruz |
| Recipients |
uruz |
| Date |
2012年08月27日.22:36:03 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1346106964.12.0.723201722432.issue15795@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Zipfile._extract_member does not preserve file permissions while extracting it. As may be seen at link[1], raw open() is used and no os.chmod() applied after that, therefore any permission data stored in zipfile is dropped and file is created with default permission depending on current user's umask.
[1] http://hg.python.org/cpython/file/52159aa5d401/Lib/zipfile.py#l1251 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年08月27日 22:36:04 | uruz | set | recipients:
+ uruz |
| 2012年08月27日 22:36:04 | uruz | set | messageid: <1346106964.12.0.723201722432.issue15795@psf.upfronthosting.co.za> |
| 2012年08月27日 22:36:03 | uruz | link | issue15795 messages |
| 2012年08月27日 22:36:03 | uruz | create |
|