C source code definition in shared-mime-info-0.17 contains vague magic. Other
C-like source codes fit these MIME types, and this fact causes MIME type
conflict between content MIME type and suffix MIME type and it causes security
warning in Nautilus.
- Remove this vague magic. (C source code without suffix will not be recognized)
- Define C-like MIME types as sub-class-of C source. (Any C-like source code
without proper suffix will be recognized as C source. Code with proper suffix
will be recognized exactly.)
Proposed patch uses the second way. It does:
Defines all C-like (header and source) MIME types as sub-class-of "C source
code" (with exception of C++ header, which is defined as sub-class of C header).
Moves *.h++ and *.hp from C header to C++ header.
Removes now obsolete duplicated magic definitions and keeps only unique ones.
Decreases priority of "/*" and "//" to prevent previous XPM high-priority
problem (just fixed) and future problems.
Created attachment 5473 [details] [review]
2006-05-14 Bastien Nocera <email@example.com>
* freedesktop.org.xml.in: patch from Stanislav Brabec <firstname.lastname@example.org>
to clarify C, C++, C# and ObjC headers and sources (Closes: #6743)