From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705) Description of problem: Running "file -i" does not always return a valid MIME type. In my case I tested a pdf file and expected a return value of "application/pdf", but got "PDF document". When asking 'file' for MIME output the default magic file is "/usr/share/magic.mime". Investigating this file shows that one would get non-MIME strings in many other cases. Version-Release number of selected component (if applicable): file-3.35-2 How reproducible: Always Steps to Reproduce: 1. execute 'file -i my_pdf_file.pdf' Actual Results: file: Using regular magic file `/usr/share/magic.mime' my_pdf_file.pdf: PDF document Expected Results: file: Using regular magic file `/usr/share/magic.mime' my_pdf_file.pdf: application/pdf Additional info: Mime types may be found here: http://www.isi.edu/in- notes/iana/assignments/media-types/media-types
fixed in file-4.10-1