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 Thomas.Sondergaard
Recipients Thomas.Sondergaard
Date 2010-09-11.12:11:58
SpamBayes Score 1.1729134e-07
Marked as misclassified No
Message-id <1284207120.65.0.876260441068.issue9835@psf.upfronthosting.co.za>
In-reply-to
Content
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--
History
Date User Action Args
2010-09-11 12:12:00Thomas.Sondergaardsetrecipients: + Thomas.Sondergaard
2010-09-11 12:12:00Thomas.Sondergaardsetmessageid: <1284207120.65.0.876260441068.issue9835@psf.upfronthosting.co.za>
2010-09-11 12:11:59Thomas.Sondergaardlinkissue9835 messages
2010-09-11 12:11:58Thomas.Sondergaardcreate