After commit https://github.com/mrkkrp/zip/commit/72970d9e475c82a78cbda40cb2eb9882849036db permissions when unpack using unzip tool got broken. The reason is that we have fixed OS version and unzip interprets extra attributes as file permissions and by default we write 0 there. For unzip it means 0o000 so no permissions.
I've investigated what zip does in that case, it keeps permissions of the existing file
$ unzip -Zl 1.zip
Archive: 1.zip
Zip file size: 7658 bytes, number of entries: 2
-rwxr-xr-x 3.0 unx 771 tx 338 defN 21-Jan-13 18:50 bench.sh
-rw------- 3.0 unx 7012 bx 7012 stor 21-Jan-13 18:58 foo.zip
After commit https://github.com/mrkkrp/zip/commit/72970d9e475c82a78cbda40cb2eb9882849036db permissions when unpack using
unzip
tool got broken. The reason is that we have fixed OS version and unzip interprets extra attributes as file permissions and by default we write 0 there. For unzip it means0o000
so no permissions.I've investigated what
zip
does in that case, it keeps permissions of the existing fileFor newly created files it uses
0600