Subject: bin/10712: /usr/share/misc/magic inconsistency
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 07/29/2000 19:24:24
>Number: 10712
>Category: bin
>Synopsis: /usr/share/misc/magic inconsistency
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 29 19:25:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Jun-ichiro itojun Hagino
>Release: 20000728
>Organization:
itojun.org
>Environment:
System: NetBSD starfruit.itojun.org 1.5C NetBSD 1.5C (STARFRUIT) #79: Fri Jul 28 17:41:41 JST 2000 itojun@starfruit.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386
>Description:
usr.bin/file/magdir/magic has the following line, to identify
magic(1) data file like /usr/share/misc/magic.
--
0 string #\ Magic magic text file for file(1) cmd
--
However, usr.bin/file/Header has the following content, effectively
disables the above.
--
#! file
# Magic data for file(1) command.
# Machine-generated from src/cmd/file/magdir/*; edit there only!
# Format is described in magic(files), where:
# files is 5 on V7 and BSD, 4 on SV, and ?? in the SVID.
--
>How-To-Repeat:
get bored in airplane, read through /usr/share/misc/magic
>Fix:
not sure. as we do not set executable bit on /usr/share/misc/magic,
it may make more sense to strip the first line (#! file) off.
>Release-Note:
>Audit-Trail:
>Unformatted: