Resend! The file command mail list kicked my mail out since I'm not in the list.
Now, I'm in.

> Hi folks,
> 
> Here, I'm reporting a bug, maybe it is solved upstream,
> but it's already on Fedora 16. Below shows the bug,
> 
> It appears when testing 
> https://github.com/linux-test-project/ltp/blob/master/testcases/commands/ade/file/file_test.sh#L292
> 
> the file command can't recognize below file as a "C program" file but just a 
> ASSCII text.
> 
>> cat > $LTPTMP/cprog.c <<EOF
>> #include <stdio.h>
>>
>> main()
>> {
>> printf("Hello Hell\n");
>> exit(0);
>> }
>> EOF
> 
> 
> 
> 
> 
> But when I add a line like "#include <stdlib.h>", it can recognize to a "C 
> program" file,
> this problem doesn't appear on RHEL6 but appears recently.
> 
> And just test use the files under the source of "file" command like,
> 
>> $ file src/file.c 
>> src/file.c: ASCII English text
> 
> 
> 
> 
> 
> 
> Do you think this is a bug, or I missed something?
> 
> Can you file command guys give me some idea about this?
> 
> 
> 
> Thanks in advance,
> Wanlong Gao



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to