Red Hat Bugzilla – Bug 146091
magic.mime file incorrect (e.g. audio/x-wav)
Last modified: 2007-11-30 17:07:06 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Description of problem:
The /usr/share/magic.mime file shipped with file 3.39 outputs two mime
types for a .wav sound file, when it should only output one (audio/x-wav).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Locate a .wav sound file on your system such as
2. Issue the command "file -in
Actual Results: file command outputs:
Expected Results: It should output:
If you look at Fedora Core 2 or 3, you'll see that they run version
*4* of file (which works perfectly with the example above), whereas
RHEL3 runs version *3*. Unfortunately, file version 3's
/usr/share/magic.mime is buggy as heck. If it can be done, I'd
recommend retro-fitting FC's /usr/share/file/magic.mime (and re-gen
the magic.mime.mgc file of course) into file version 3's
/usr/share/magic.mime. I've no idea if that would work correctly (e.g.
does file 4 support new syntaxes in magic.mime that file 3 doesn't?).
If you can't retro-fit file 4's magic.mime, then the faulty lines in
file 3's /usr/share/magic.mime are:
Remove the string "audio/unknown" from the line (so that the last
chars on the line are "RIFF").
Remove the trailing tab from the end of the line (straight after
I got it fixed, will come out with next update of file.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.