From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 21 12:47:12 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0106106566B for ; Thu, 21 Jun 2012 12:47:12 +0000 (UTC) (envelope-from islamyasar@yandex.com) Received: from forward17.mail.yandex.net (forward17.mail.yandex.net [IPv6:2a02:6b8:0:1402::2]) by mx1.freebsd.org (Postfix) with ESMTP id 271608FC19 for ; Thu, 21 Jun 2012 12:47:12 +0000 (UTC) Received: from web10g.yandex.ru (web10g.yandex.ru [95.108.252.110]) by forward17.mail.yandex.net (Yandex) with ESMTP id ADB1F10600BD for ; Thu, 21 Jun 2012 16:47:10 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1340282830; bh=3kWQJjiuio+uZsC52LWLJJ2WU4zOe4KyQZjebJbABkM=; h=From:To:Subject:MIME-Version:Message-Id:Date: Content-Transfer-Encoding:Content-Type; b=Wy2BciPyOlO89I/vikHdcSo6LSkTTyXuIRqh/VyZ59+vKJIqfFqlUcHR6UV3o3Ie+ ZZaR7Y2x2Vk8TUP09wwp4pBrOAjZDdqHDRv/innCpqyCWgJXbsKrZpP2k8571SjrYI bQz7Tf9yaZ670t5uZOD1dlxFG45ZT0tzXvE39Jlc= Received: from 127.0.0.1 (localhost.localdomain [127.0.0.1]) by web10g.yandex.ru (Yandex) with ESMTP id 7F29527006F; Thu, 21 Jun 2012 16:47:10 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1340282830; bh=3kWQJjiuio+uZsC52LWLJJ2WU4zOe4KyQZjebJbABkM=; h=From:To:Subject:MIME-Version:Message-Id:Date: Content-Transfer-Encoding:Content-Type; b=Wy2BciPyOlO89I/vikHdcSo6LSkTTyXuIRqh/VyZ59+vKJIqfFqlUcHR6UV3o3Ie+ ZZaR7Y2x2Vk8TUP09wwp4pBrOAjZDdqHDRv/innCpqyCWgJXbsKrZpP2k8571SjrYI bQz7Tf9yaZ670t5uZOD1dlxFG45ZT0tzXvE39Jlc= Received: from asy62.asy144.tellcom.com.tr (asy62.asy144.tellcom.com.tr [195.214.144.62]) by web10g.yandex.ru with HTTP; Thu, 21 Jun 2012 16:47:10 +0400 From: =?utf-8?B?WWHFn2FyIMSwc2xhbQ==?= To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Message-Id: <506061340282830@web10g.yandex.ru> Date: Thu, 21 Jun 2012 15:47:10 +0300 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r X-Mailman-Approved-At: Thu, 21 Jun 2012 13:11:04 +0000 Subject: libmagic issue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2012 12:47:12 -0000 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