From wpaul@marple.ctr.columbia.edu  Thu Oct 24 13:17:11 1996
Received: from marple.ctr.columbia.edu (marple.ctr.columbia.edu [128.59.74.56])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA18556
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 24 Oct 1996 13:17:06 -0700 (PDT)
Received: (from wpaul@localhost) by marple.ctr.columbia.edu (8.7.6/8.7.3) id QAA05252; Thu, 24 Oct 1996 16:17:23 -0400 (EDT)
Message-Id: <199610242017.QAA05252@marple.ctr.columbia.edu>
Date: Thu, 24 Oct 1996 16:17:23 -0400 (EDT)
From: Bill Paul <wpaul@marple.ctr.columbia.edu>
Reply-To: wpaul@marple.ctr.columbia.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: file(1) misidentifies Sun3/m68k executables
X-Send-Pr-Version: 3.2

>Number:         1881
>Category:       bin
>Synopsis:       file(1) misidentifies Sun3/m68k executables
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 24 13:20:01 PDT 1996
>Closed-Date:    Fri Nov 10 10:07:39 PST 2000
>Last-Modified:  Fri Nov 10 10:08:20 PST 2000
>Originator:     Bill Paul
>Release:        FreeBSD 2.2-961014-SNAP i386
>Organization:
Center for Telecommunications Research, Columbia University
>Environment:

	486/33 with 8MB RAM
	110 MB IDE disk drive
	Running NIS and NFS (client).

>Description:

file(1) thinks that SunOS 4.1.1/sun3/m68k executables are Xenix
8086 relocatable (Microsoft) object files. Even though there are
entries in /etc/magic to describe such files, file(1) seems to
ignore them.

Note that FreeBSD 2.1.0 seems to suffer from the same problem.

>How-To-Repeat:

Find a couple of Sun3/m86k executables and run file(1) on them:

[/homes/wpaul/src/uha]:marple.ctr.columbia.edu{97}% uname -sr
FreeBSD 2.2-961014-SNAP
[/homes/wpaul/src/uha]:marple.ctr.columbia.edu{98}% file ls
ls: 8086 relocatable (Microsoft)
[/homes/wpaul/src/uha]:marple.ctr.columbia.edu{99}% file du2-sun3
du2-sun3: 8086 relocatable (Microsoft)


A SPARC IPX running SunOS 4.1.3 identifies them correctly:

[/homes/wpaul/src/uha]:startide{313}% uname -sr
SunOS 4.1.3
[/homes/wpaul/src/uha]:startide{314}% file ls
ls:             mc68020 pure dynamically linked executable
[/homes/wpaul/src/uha]:startide{315}% file du2-sun3
du2-sun3:       mc68020 demand paged dynamically linked executable


>Fix:
	
Unknown.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: phk 
State-Changed-When: Wed Apr 15 11:42:09 PDT 1998 
State-Changed-Why:  
->suspended 
State-Changed-From-To: suspended->feedback 
State-Changed-By: nbm 
State-Changed-When: Wed Jun 28 02:28:16 PDT 2000 
State-Changed-Why:  
Anyone know if this is still the case? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=1881 

From: Jeroen Ruigrok van der Werven <jruigrok@via-net-works.nl>
To: FreeBSD Gnats <freebsd-gnats-submit@freebsd.org>, nbm@freebsd.org
Cc:  
Subject: Re: bin/1881: file(1) misidentifies Sun3/m68k executables
Date: Thu, 27 Jul 2000 15:04:09 +0200

 -On [20000628 11:30], nbm@FreeBSD.ORG (nbm@FreeBSD.ORG) wrote:
 >Anyone know if this is still the case?
 
 Yes.
 
 4.0-STABLE:
 
 [asmodai@freefall] (53) $ file /home/adrian/sun3xdoom 
 /home/adrian/sun3xdoom: 8086 relocatable (Microsoft)
 
 -- 
 Jeroen Ruigrok van der Werven          Network- and systemadministrator
 <jruigrok@via-net-works.nl>            VIA Net.Works The Netherlands
 BSD: Technical excellence at its best  http://www.via-net-works.nl
 Life is just one damned thing after another...
 
State-Changed-From-To: feedback->open 
State-Changed-By: sheldonh 
State-Changed-When: Thu Jul 27 06:30:24 PDT 2000 
State-Changed-Why:  
Feedback acquired. 


Responsible-Changed-From-To: freebsd-bugs->obrien 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Thu Jul 27 06:30:24 PDT 2000 
Responsible-Changed-Why:  
David's promised to chat to Christos. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=1881 
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Fri Nov 10 10:07:39 PST 2000 
State-Changed-Why:  
OBE -- we have switched to the Christos Zoulas maintained version of `file'. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=1881 
>Unformatted:
