Closed armijnhemel closed 8 months ago
When I compress a file with bzip2 compression the wrong "version needed to extract" seems to be recorded. Instead of 4.6 it records 2.0:
4.6
2.0
$ ./minizip -b /tmp/bla.zip /bin/ls minizip-ng 4.0.4 - https://github.com/zlib-ng/minizip-ng --------------------------------------------------- -b /tmp/bla.zip /bin/ls Archive /tmp/bla.zip Adding ls $ file /tmp/bla.zip /tmp/bla.zip: Zip archive data, at least v2.0 to extract, compression method=bzip2
The ZIP specification ( https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT ) section 4.4.3.2 says that the minimum feature version should instead be 4.6:
4.6 - File is compressed using BZIP2 compression
When using the regular zip tool:
zip
$ zip -Zb -r /tmp/bla2.zip /bin/ls adding: bin/ls (bzipped 56%) $ file /tmp/bla2.zip /tmp/bla2.zip: Zip archive data, at least v4.6 to extract, compression method=bzip2
Thanks, I have fixed it in the develop branch.
develop
When I compress a file with bzip2 compression the wrong "version needed to extract" seems to be recorded. Instead of
4.6
it records2.0
:The ZIP specification ( https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT ) section 4.4.3.2 says that the minimum feature version should instead be 4.6:
When using the regular
zip
tool: