<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've added a test program to xdgmime (that's where the code lives) to<br>
print out the mime-type of files gathered "by name", "by data" and "by<br>
file". Expanding it to print out mismatches to a separate file would be<br>
fairly straight forward, and avoid having to use hard links at all.<br></blockquote><div><br>I imagine it would be easy to make it recursive in a shell loop over "tree -dif ." or "find . -type d -print".<br>
<br>It would be nice if the script could report mismatches to stderr; it would be easy to sort them from that point on. Also, it might be a good idea to not complain about mime types that are impossible to detect by content, like ISO 9660, LZMA archives, etc. so you don't receive any useless bug reports about them.<br>
<br>By the way, print-mime-data hangs up when it encounters a named pipe. My script does not because it skips everything that's not a regular file. And xdg-mime reports it as "inode/fifo".<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Thanks for your bug reports, feel free to keep them coming.<br></blockquote><div><br>And thank you for fixing the bugs!<br><br>In fact I've reported the mp3 bug (<a href="https://bugs.freedesktop.org/show_bug.cgi?id=55250">https://bugs.freedesktop.org/show_bug.cgi?id=55250</a>) to Ubuntu bug tracker back in 2009, and it was never forwarded to FD.o bug tracker; there are lots unattended bugs still hanging at <a href="https://bugs.launchpad.net/ubuntu/+source/shared-mime-info">https://bugs.launchpad.net/ubuntu/+source/shared-mime-info</a> <br>
I guess I'll forward everything that's still relevant to the FD.o bug tracker now.<br><br>--<br>Sergey "Shnatsel" Davidoff<br></div></div>