Bug 3256

Summary: XML file recognized as Makefile
Product: shared-mime-info Reporter: Christian - Manny Calavera - Neumair <cneumair>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: bjourne
Version: unspecified   
Hardware: Other   
OS: All   
URL: http://bugzilla.gnome.org/show_bug.cgi?id=166671
Whiteboard:
i915 platform: i915 features:
Attachments: Remove a bad glob for makefile mime type

Description Christian - Manny Calavera - Neumair 2005-05-10 02:48:11 UTC
From GNOME BugZilla, bug 166671 [1]:

Distribution/Version: Gentoo

I got a Docbook XML file on the subject of makefiles, called
makefile-autotools.dbk. I found out (by trying to open it with Yelp) GnomeVFS
seems to determine the MIME type of the file wrongly ("file" works fine). The
file is tagged as text/x-makefile. If I rename it to makefile-autotools.xml, it
is tagged as text/xml, which is correct. Also if I rename it to
writing-makefiles-autotools.dbk, GnomeVFS figures out its a text/xml file.
I suspect (just suspect, didnt check) GnomeVFS tags all files starting with
"makefile" or something as text/x-make?

The file that was tagged wrongly is here:
http://code.eikke.com/index.php?dir=misc/&file=makefile-autotools.dbk

[1] http://bugzilla.gnome.org/show_bug.cgi?id=166671
Comment 1 Björn Lindqvist 2005-12-15 11:07:25 UTC
Created attachment 4086 [details] [review]
Remove a bad glob for makefile mime type
Comment 2 Björn Lindqvist 2005-12-15 11:14:07 UTC
I think having the glob "makefile*" to match Makefile is permissive and causes
many files which are not Makefiles to be displayed as Makefiles. I'm not sure
removing the glob is the correct thing to do because it must have been put there
for some reason. But its been 10 months since the bug was filed and what are the
odds that someone will complain if the glob is removed ...
Comment 3 Christian - Manny Calavera - Neumair 2006-02-22 03:57:16 UTC
Thanks, I've removed that glob.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.