[issue9835] ZipFile unix external attributes incorrect for entry written with writestr

2010-09-11 Thread Thomas Sondergaard
New submission from Thomas Sondergaard : 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 wi

[issue9835] ZipFile unix external attributes incorrect for entry written with writestr

2010-09-11 Thread Thomas Sondergaard
Thomas Sondergaard added the comment: It does know that the entry is a regular file, and that is the bit of information that is missing in the unix external file attributes. Having said that you do have a point - perhaps it shouldn't record unix external file attributes at all, whe