`file` command mime types are inconsistent on RHEL6 with RHEL5.
Issue
- Why does the
mimetypes inconsistent on Red Hat Enterprise Linux 6 with Red Hat Enterprise Linux 5? - When run with the
--mimeoption, thefilecommand returns a generic result forISO9660files that is inconsistent with the version delivered with RHEL5.x. - On RHEL5.x,
file-4.17(expected result):
$ file --brief --mime rhel-workstation-6.4-x86_64-dvd.iso
application/x-iso9660
- On RHEL6.4,
file-5.04(generic result):
$ file --brief --mime rhel-workstation-6.4-x86_64-dvd.iso
application/octet-stream; charset=binary
- While technically correct, the significant
magicfor ISO9660 (stringCD001atoffset 32769) has been missed. - Note that when run without the
--mimeoption, the newer version offilereturns a result consistent with RHEL5:
$ file --brief rhel-workstation-6.4-x86_64-dvd.iso
ISO 9660 CD-ROM filesystem data 'RHEL_6.4 x86_64 Disc 1 ' (bootable)
Environment
- Red Hat Enterprise Linux 6
file-5.04-15.el6.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
