Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 1996 16:17:23 -0400 (EDT)
From:      Bill Paul <wpaul@marple.ctr.columbia.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/1881: file(1) misidentifies Sun3/m68k executables
Message-ID:  <199610242017.QAA05252@marple.ctr.columbia.edu>
Resent-Message-ID: <199610242020.NAA18821@freefall.freebsd.org>

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

>Number:         1881
>Category:       bin
>Synopsis:       file(1) misidentifies Sun3/m68k executables
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 24 13:20:01 PDT 1996
>Last-Modified:
>Originator:     Bill Paul
>Organization:
Center for Telecommunications Research, Columbia University
>Release:        FreeBSD 2.2-961014-SNAP i386
>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.
>Audit-Trail:
>Unformatted:



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