AW: file -i (mime type) has bug ?

Kipp Holger h.kipp at eurowings.com
Thu Sep 8 09:33:00 PDT 2005


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


More information about the freebsd-stable mailing list