Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2001 20:51:32 -0500 (EST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        stable@freebsd.org
Cc:        obrien@freebsd.org
Subject:   Re: file broken
Message-ID:  <15384.2468.856614.252768@grasshopper.cs.duke.edu>
In-Reply-To: <20011212235255.A77228@freebie.xs4all.nl>
References:  <3C17DD82.73F632A9@vortex.wa4phy.net> <20011212235255.A77228@freebie.xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help


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




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