Yaşar İslam | 21 Jun 2012 14:47
Favicon

libmagic issue


Hi all,

I m using libmagic for my application on FreeBSD. I have some problems. libmagic doenst  return properly
mimetype of file. For example :

system is FreeBSD 8.2-RELEASE .

file --mime-type example.7z ---->   application/octet-stream

file example.7z ---->  7-zip archive data, version 0.3    and

 when i try to test same file on linux (ubuntu 12.04) :

file --mime-type example.7z  ---->   application/x-7z-compressed
file example.7z  ----> 7-zip archive data, version 0.3

why does not  FreeBSD behave like linux and if i need to update magic.mgc , how can i do that ? i need the result
application/x-7z-compressed  after i type as command file --mime-type example.7z..

Any help  would be appreciated.

Thanks ... I.Yasar
_______________________________________________
freebsd-hackers <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe <at> freebsd.org"

Wojciech Puchar | 21 Jun 2012 16:35
Picon

Re: libmagic issue

> file --mime-type example.7z  ---->   application/x-7z-compressed
> file example.7z  ----> 7-zip archive data, version 0.3
>
> why does not  FreeBSD behave like linux

you answered it yourself just below.

> and if i need to update magic.mgc , how can i do that ? i need the 
edit/update /usr/share/misc/magic
and use file -C to rebuild magic.mgc file.

then post your added/fixed/updated entries using send-pr tool
so it will be included.
_______________________________________________
freebsd-hackers <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe <at> freebsd.org"

Gmane