From nobody Tue Mar 1 18:39:29 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id F0ACE19E78F9 for ; Tue, 1 Mar 2022 18:39:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K7QyT4hXRz4hVd for ; Tue, 1 Mar 2022 18:39:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 81FDE1487F for ; Tue, 1 Mar 2022 18:39:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 221IdT1a038381 for ; Tue, 1 Mar 2022 18:39:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 221IdTcw038380 for bugs@FreeBSD.org; Tue, 1 Mar 2022 18:39:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262278] file(1) fails to identify a JAR file Date: Tue, 01 Mar 2022 18:39:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646159969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=H7c7Cp3++QDdk8XyBa1guYNYCKyKtsL2Xcgl4iBgB+8=; b=APNltHjHQNx8uuVaNS+OzcCZhj6Nxq/zn+FrbislUnJcuHmh2As4fxNP9uvlvuo6kKUFUL TkSbjDAOIr9Q27iUnQ7O/7UiBTlMcr2FI8x3UfI65Yi4qYg47m/39NFpFS67x2/1I0PbKY lIpy4gGkg+7kdN32eQ+cGgRxhvJ+0mbE7jf+E8CZKyJHoa/6I0mvf9Vlh4zpAPzGRaZrBq EPr4c7wfNBRXsri20cyc1ntElf2u/E1xieSHf8MUOG9THN8Bc6KpyQ74kofsUNOxp1hiCP 57ACGTJ2c/ATMFsNlcdlAwLXZFAkNA2q35C/vv247Uhvonhw4ByMox+A8bACLg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646159969; a=rsa-sha256; cv=none; b=ftJW/kX9So772CrCkW9VqLWf5+u1NMMswoHAkxddXz19VMQqpc1qmLF2t9NwrRAxdPIDax kHNm1gPWcTsxKitAdefB3EhfsmXseKkBI7AxVB6YDIf4ForNjl8A8+mxheIkEU44KZylFz 51Kqbk0TRZy8CyPUfS80SWIUxk7Owweu7k07w6snTrURXRFdKmeJIP5UNqqvEKT4vynYkT UC/K6FyqABLx674rBbg0ARo3owYtP27sEV5aBeKOUSJOOgbwDZHSArr4wQcazxOzEp0P4O Yz8lqEqFeVqoafQFdGOg1ZFNykVXn0jT7yzr6WMDWgM4sD2YmZhJvYddv9RU/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262278 Ed Maste changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |emaste@freebsd.org --- Comment #1 from Ed Maste --- 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.=