Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 594636

Summary: file cannot recognize C header files
Product: Red Hat Enterprise Linux 6 Reporter: Milos Malik <mmalik>
Component: fileAssignee: Jan Kaluža <jkaluza>
Status: CLOSED CURRENTRELEASE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: ovasik
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: file-5.04-5.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 603040 (view as bug list) Environment:
Last Closed: 2010-11-10 20:23:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 603040, 610067    
Attachments:
Description Flags
Fix for regressions none

Description Milos Malik 2010-05-21 08:20:36 UTC
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):
file-5.04-4.el6.i686
glib2-devel-2.22.5-2.el6.i686

How reproducible:
always

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

  
Actual results:


Expected results:

Comment 3 Jan Kaluža 2010-06-11 10:42:37 UTC
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".

Comment 5 Jan Kaluža 2010-06-11 11:44:24 UTC
Commited to CVS, fixed in version file-5.04-5.el6.

http://post-office.corp.redhat.com/archives/cvs-commits-list/2010-June/msg01612.html

Comment 7 releng-rhel@redhat.com 2010-11-10 20:23:17 UTC
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.