Red Hat Bugzilla – Bug 594636
file cannot recognize C header files
Last modified: 2010-11-10 15:23:17 EST
Description of problem:
Some .h files are not correctly recognized by file. I believe it's a regression because file-5.03-12.el6 recognizes them correctly.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
# rpm -ql glib2-devel | grep '\.h$' | xargs file | grep exported
/usr/include/gio-unix-2.0/gio/gunixmounts.h: exported SGML document text
/usr/include/glib-2.0/gio/gappinfo.h: exported SGML document text
/usr/include/glib-2.0/gio/gfile.h: exported SGML document text
/usr/include/glib-2.0/gio/gfileattribute.h: exported SGML document text
/usr/include/glib-2.0/gio/gicon.h: exported SGML document text
/usr/include/glib-2.0/gio/gsocketaddressenumerator.h: exported SGML document text
/usr/include/glib-2.0/gio/gsocketconnectable.h: exported SGML document text
/usr/include/glib-2.0/gobject/gclosure.h: exported SGML document text
/usr/include/glib-2.0/gobject/gtypemodule.h: exported SGML document text
Created attachment 423235 [details]
Fix for regressions
Attached patch fixes regressions in file-5.0.4 which are causing described problem. It basically removes excessive HTML/SGML "magic patterns".
Commited to CVS, fixed in version file-5.04-5.el6.
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.