Subject: Re: bin/29682
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 03/23/2005 02:04:02
The following reply was made to PR bin/29682; it has been noted by GNATS.

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Cc: 
Subject: Re: bin/29682
Date: Tue, 22 Mar 2005 21:03:19 -0500

 On Mar 23,  1:11am, sigsegv@rambler.ru (sigsegv@rambler.ru) wrote:
 -- Subject: Re: bin/29682
 
 File is supposed to byte-swap things if the endianness does not match.
 There is probably a bug in that code.
 
 christos
 
 |  magic files built on sparc64 machine for sparc64:
 |  
 |  u10# file /usr/share/misc/magic*
 |  /usr/share/misc/magic:          magic text file for file(1) cmd
 |  /usr/share/misc/magic.mgc:      magic binary file for file(1) cmd 
 |  (version 2) (big endian)
 |  /usr/share/misc/magic.mime:     magic text file for file(1) cmd
 |  /usr/share/misc/magic.mime.mgc: magic binary file for file(1) cmd 
 |  (version 2) (big endian)
 |  
 |  
 |  magic files cross-built on i386 machine for sparc64:
 |  
 |  u10# file /root/magics/*
 |  /root/magics/magic:          magic text file for file(1) cmd
 |  /root/magics/magic.mgc:      magic binary file for file(1) cmd (version 
 |  2) (little endian)
 |  /root/magics/magic.mime:     magic text file for file(1) cmd
 |  /root/magics/magic.mime.mgc: magic binary file for file(1) cmd (version 
 |  2) (little endian)
 |  
 |  I think binary files should all be 'big endian' this is what's causing 
 |  the problem
 |  
 -- End of excerpt from sigsegv@rambler.ru