All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [BUG] I'm reporting a bug about file
@ 2012-04-26  3:52 Wanlong Gao
  2012-04-26  5:19 ` Wanlong Gao
  2012-04-28 21:23 ` Christos Zoulas
  0 siblings, 2 replies; 5+ messages in thread
From: Wanlong Gao @ 2012-04-26  3:52 UTC (permalink / raw)
  To: file; +Cc: LTP List

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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-28 21:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-26  3:52 [LTP] [BUG] I'm reporting a bug about file Wanlong Gao
2012-04-26  5:19 ` Wanlong Gao
2012-04-28  5:50   ` Zhouping Liu
2012-04-28 11:12     ` Wanlong Gao
2012-04-28 21:23 ` Christos Zoulas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.