Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Sep 2005 18:30:17 +0200
From:      "Kipp Holger" <h.kipp@eurowings.com>
To:        "Andriy Gapon" <avg@icyb.net.ua>, <freebsd-stable@freebsd.org>
Subject:   AW: file -i (mime type) has bug ?
Message-ID:  <BA84A761ED41C54893BED691A4A574CF97763D@EXCH5.eurowings.com>

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

Andriy Gapon wrote on Thursday, 08.09.2005 18:23

> Additional information:
>
> >file mod_ibm_admin.so
> mod_ibm_admin.so: executable (RISC System/6000 V3.1) or obj module not
> stripped
>
> >file -i mod_ibm_admin.so
> mod_ibm_admin.so: video/unknown
>
> I wonder what might be causing this "xenophobia".

According to "man file" this is due to different magic files
being used:

     -i      Causes the file command to output mime type strings rather =
than
             [...] and makes use of an alternative
             magic file.  (See FILES section, below).

FILES
     /usr/share/misc/magic.mgc   default compiled list of magic numbers
     /usr/share/misc/magic       default list of magic numbers
     /usr/share/misc/magic.mime  default list of magic numbers, used to =
output
                                 mime types when the -i option is =
specified.

Regards,
Holger Kipp



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