From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041119 Firefox/1.0 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): file-3.39-9 How reproducible: Always Steps to Reproduce: 1. Locate a .wav sound file on your system such as /usr/share/redhat-config-soundcard/redhat-sample.wav 2. Issue the command "file -in /usr/share/redhat-config-soundcard/redhat-sample.wav" Actual Results: file command outputs: /usr/share/redhat-config-soundcard/redhat-sample.wav: audio/unknown audio/x-wav Expected Results: It should output: /usr/share/redhat-config-soundcard/redhat-sample.wav: audio/x-wav Additional info: 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: Line 89: Remove the string "audio/unknown" from the line (so that the last chars on the line are "RIFF"). Line 91: Remove the trailing tab from the end of the line (straight after "audio/x-wav").
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. http://rhn.redhat.com/errata/RHBA-2006-0389.html