Subject: Re: bin/29682
To: None <gnats-bugs@netbsd.org, gnats-admin@netbsd.org,>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 03/22/2005 21:03:19
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