Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Mar 2022 18:39:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262278] file(1) fails to identify a JAR file
Message-ID:  <bug-262278-227-npgVZMXG6i@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-262278-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-262278-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262278

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 libm=
agic
keys on this, but it is not required, and the file you've linked does not h=
ave
this field.

Useful links:
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=3D6211008
https://bugs.openjdk.java.net/browse/JDK-6808540

This should probably be reported/discussed at http://www.darwinsys.com/file/

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262278-227-npgVZMXG6i>