From owner-freebsd-stable Wed Dec 12 17:52:10 2001 Delivered-To: freebsd-stable@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 8078D37B405; Wed, 12 Dec 2001 17:52:03 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id UAA17107; Wed, 12 Dec 2001 20:51:58 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.3/8.9.1) id fBD1pXY27829; Wed, 12 Dec 2001 20:51:33 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15384.2468.856614.252768@grasshopper.cs.duke.edu> Date: Wed, 12 Dec 2001 20:51:32 -0500 (EST) To: stable@freebsd.org Cc: obrien@freebsd.org Subject: Re: file broken In-Reply-To: <20011212235255.A77228@freebie.xs4all.nl> References: <3C17DD82.73F632A9@vortex.wa4phy.net> <20011212235255.A77228@freebie.xs4all.nl> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hmm. File actually *has* been broken recently: % file /usr/local/lib/netscape/communicator-4.77.bin /usr/local/lib/netscape/communicator-4.77.bin: DBase 3 data file with memo(s) (985657568 records) The 4.3 "magic" file yields proper results: file -m /tmp/magic.43 /usr/local/lib/netscape/communicator-4.77.bin file: Using regular magic file `/tmp/magic.43' /usr/local/lib/netscape/communicator-4.77.bin: COFF format alpha executable paged dynamically linked stripped - version 3.11-10 Running magic -k makes it apparent that the osf/1 coff entry is being obscured by the dbase entry & several ecoff entries for OSes whose ecoff binaries we do not emulate, and then another dbase entry. Since we actually execute osf/1 ecoff files, I'd really like file to tell users what the are. The easiest fix is to prepend the alpha file (patch appended). Is there a more clever way that I'm not thinking of? Drew Index: Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/file/Makefile,v retrieving revision 1.13.2.6 diff -u -r1.13.2.6 Makefile --- Makefile 2001/08/17 22:47:13 1.13.2.6 +++ Makefile 2001/12/13 01:43:24 @@ -36,7 +36,8 @@ CLEANFILES+= magic magic.mgc magic.mime.mgc magic.mime.PITA -MAGFILES= ${SRCDIR}/Header\ +MAGFILES= ${SRCDIR}/Magdir/alpha\ + ${SRCDIR}/Header\ ${SRCDIR}/Localstuff\ ${SRCDIR}/Magdir/[a-z]* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message