[Bug 262278] file(1) fails to identify a JAR file
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 262278] file(1) fails to identify a JAR file"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 01 Mar 2022 18:39:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262278
Ed Maste <emaste@freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |emaste@freebsd.org
--- Comment #1 from Ed Maste <emaste@freebsd.org> ---
JAR files are in fact ZIP files, just with special metadata. libmagic's JAR
detection was added here:
https://github.com/file/file/commit/e45cd303713418af058361f5711a768550e1c867
JAR files often have 0xcafe at a specific location in the ZIP file and libmagic
keys on this, but it is not required, and the file you've linked does not have
this field.
Useful links:
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6211008
https://bugs.openjdk.java.net/browse/JDK-6808540
This should probably be reported/discussed at http://www.darwinsys.com/file/
--
You are receiving this mail because:
You are the assignee for the bug.