Bug 510429

Summary: file is confused by string "/* (if any) */" in C header and claims it "Lisp/Scheme program text"
Product: [Fedora] Fedora Reporter: Michal Nowak <mnowak>
Component: fileAssignee: Daniel Novotny <dnovotny>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dnovotny, ohudlick
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-23 14:32:54 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:
Attachments:
Description Flags
usr/include/readline5/readline/history.h: Lisp/Scheme program text
none
a patch: removing magic none

Description Michal Nowak 2009-07-09 08:52:56 UTC
Created attachment 351027 [details]
usr/include/readline5/readline/history.h:    Lisp/Scheme program text

Description of problem:

newman@dhcp-lab-124 tmp $ cat usr/include/readline5/readline/history.h
/* (if any) */

newman@dhcp-lab-124 tmp $ file usr/include/readline5/readline/history.h
usr/include/readline5/readline/history.h: Lisp/Scheme program text

Version-Release number of selected component (if applicable):

file-5.03-2.fc11.x86_64

How reproducible:

always
  
Actual results:

Lisp/Scheme program text"

Expected results:

"ASCII C program text" as for other C headers

Additional info:

This caused rpmlint warning here: https://bugzilla.redhat.com/show_bug.cgi?id=510022#c1

Attaching the whole file.

Comment 1 Daniel Novotny 2009-07-23 14:01:53 UTC
Created attachment 354864 [details]
a patch: removing magic

The magic for Lisp files contains search for "(if" - this can confuse file(1) in this case and I can imagine some others (like natural language English text perhaps). Removing this entry.

Comment 2 Daniel Novotny 2009-07-23 14:03:38 UTC
is it sufficient to fix this in rawhide, or do you want me to fix this also in F11?

Comment 3 Daniel Novotny 2009-07-23 14:17:53 UTC
fixed in rawhide now: file-5.03-6.fc12

Comment 4 Michal Nowak 2009-07-23 14:32:54 UTC
Rawhide's fine for me.

Comment 5 Michal Nowak 2009-07-23 14:33:09 UTC
Thanks.