Message116093
For entries written with writestr ZipFile doesn't record the file type in the unix external attributes block. It should set it to "regular file" (S_IFREG).
The attached sample creates a zip file. If you inspect it with zipinfo -v, you will see that the unix file type is not correct for the entry stored with writestr.
[ts@roadrunner ~]$ zipinfo -v test.zip |grep "Unix file attributes"
Unix file attributes (000600 octal): ?rw-------
Unix file attributes (100664 octal): -rw-rw-r-- |
|
Date |
User |
Action |
Args |
2010-09-11 12:12:00 | Thomas.Sondergaard | set | recipients:
+ Thomas.Sondergaard |
2010-09-11 12:12:00 | Thomas.Sondergaard | set | messageid: <1284207120.65.0.876260441068.issue9835@psf.upfronthosting.co.za> |
2010-09-11 12:11:59 | Thomas.Sondergaard | link | issue9835 messages |
2010-09-11 12:11:58 | Thomas.Sondergaard | create | |
|