Menu

#80 zip: Sets 'version needed to extract' to 1.0 even if there are deflated files

v1.0 (example)
open
nobody
None
5
2025-04-22
2025-04-22
No

Hello. This is Debian Bug #606920 and this is the full URL for the bug:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606920

Follows a summary of the bug.

Personal note: Maybe the problem is that the version required to extract is the version of the standard,
not the program version? I would gladly close this as a non-bug in Debian if it's documented somewhere.

Jasen Betts writes:

If the first file is "stored" file gets the required zip version wrong.

jasen@gonzo:~$ mkdir x x/a ; cd x
jasen@gonzo:~/x$ dd count=1 </dev/urandom | od > a/b
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.000225439 s, 2.3 MB/s
jasen@gonzo:~/x$ zip -r foo a 
  adding: a/ (stored 0%)
  adding: a/b (deflated 55%)
jasen@gonzo:~/x$ file foo.zip 
foo.zip: Zip archive data, at least v1.0 to extract


deflate compression needs atleast version 2.0 to extract

I think file is currently trying to determine required zip version 
from the header of the first file record. this often yeilds misleading 
information.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.