This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: printf '\377\376h\000\r\000\n\000'|file - #wrong result?


Thanks Corinna

On Mon 12/4/06 22:10 +0100 cygwin@cygwin.com wrote:
> On Dec  4 14:47, Tom Rodman wrote:
> > Should this directed to the "file" package maintainer?:
> 
> No.  You're using different versions of the `file' package.  The output
> of `file' is based on data files which are updated with each new version.
> 
> Hint: Don't rely on the output of file being 100% accurate.  It's using
>       approximations based on descriptions of file headers and typical
>       content.

FWIW I tried renaming the magic* files below /usr/share/file,
and then copied in those from the linux box.  This throughly "broke"
"file", so I reverted.  I also spent a few min in the file and magic
man pages, and suspect, given enough time it may be possible for an end user
like me to fix this.  I suspect this is OT for the list, so if I pursue this
further I will post to another more appropriate (UNIX/usenet) group.

--
thanks again,
Tom


looks like the latest "file" package is about 1 year old?:
--v-v------------------C-U-T---H-E-R-E-------------------------v-v-- 
$ command ls -log $(cygcheck -l file|d2u)
-r-xr-xr-x+ 1  49152 Nov 19  2005 /usr/bin/cygmagic-1.dll
-r-xr-xr-x+ 1   9728 Nov 19  2005 /usr/bin/file.exe
-r-xr-xr-x+ 1   2633 Nov 19  2005 /usr/include/magic.h
-r-xr-xr-x+ 1 308542 Nov 19  2005 /usr/lib/libmagic.a
-r-xr-xr-x+ 1  21304 Nov 19  2005 /usr/lib/libmagic.dll.a
-r-xr-xr-x+ 1    776 Nov 19  2005 /usr/lib/libmagic.la
-r-xr-xr-x+ 1 428530 Nov 19  2005 /usr/share/file/magic
-r-xr-xr-x+ 1 928512 Nov 19  2005 /usr/share/file/magic.mgc
-r-xr-xr-x+ 1  30955 Nov 19  2005 /usr/share/file/magic.mime
-r-xr-xr-x+ 1  43904 Nov 19  2005 /usr/share/file/magic.mime.mgc
-r-xr-xr-x+ 1  16480 Nov 19  2005 /usr/share/man/man1/file.1
-r-xr-xr-x+ 1   6647 Nov 19  2005 /usr/share/man/man3/libmagic.3
-r-xr-xr-x+ 1  12074 Nov 19  2005 /usr/share/man/man5/magic.5
$ cygcheck -c file
Cygwin Package Information
Package              Version        Status
file                 4.16-1         OK


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]