Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2012 15:47:10 +0300
From:      =?utf-8?B?WWHFn2FyIMSwc2xhbQ==?= <islamyasar@yandex.com>
To:        freebsd-hackers@freebsd.org
Subject:   libmagic issue
Message-ID:  <506061340282830@web10g.yandex.ru>

next in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?506061340282830>