Subject: bin/12437: new file(1) fails on jpeg data files.
To: None <gnats-bugs@gnats.netbsd.org>
From: Nathan J. Williams <nathanw@daffy-duck.putnam>
List: netbsd-bugs
Date: 03/19/2001 19:55:45
>Number:         12437
>Category:       bin
>Synopsis:       new file(1) fails on jpeg data files.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 19 16:57:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Nathan J. Williams
>Release:        NetBSD-current of 2001-03-19
>Organization:
	Massachvsetts Institvte of Technology
>Environment:
	
System: NetBSD daffy-duck.putnam 1.5R NetBSD 1.5R (DAFFY-DUCK) #138: Sun Feb 11 22:59:19 EST 2001 nathanw@daffy-duck.putnam:/u1/nbsd/src/sys/arch/alpha/compile/DAFFY-DUCK alpha
Architecture: alpha
Machine: alpha
>Description:

file(1) no longer identified JPEG/JFIF files properly, nor
does it correctly indicate its confusion.

690 daffy-duck:nathanw>file putnam2.jpg 
putnam2.jpg: 

Reverting to source as of March 1 and rebuilding restores the correct
behavior:

698 daffy-duck:nathanw>file putnam2.jpg 
putnam2.jpg: JPEG image data, JFIF standard

A little experimenting hints that it is the magic file that is the
problem; a 1.5, 3/1, and 3/19 file(1) binaries work properly with a
3/1 magic file, but all three fail with the 3/19 magic file.

>How-To-Repeat:
Build and install a current file(1); run on a jpeg.
This problem exists on both i386 and alpha platforms.

Unknown whether this affects all jpeg/jfif files; it failed on
all the samples I had handy. The sample image used above is avaliable
as http://web.mit.edu/nathanw/www/netbsd/putnam2.jpg (15KB).

>Fix:
	Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: