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

* Re: [LTP] [BUG] I'm reporting a bug about file
  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 21:23 ` Christos Zoulas
  1 sibling, 1 reply; 5+ messages in thread
From: Wanlong Gao @ 2012-04-26  5:19 UTC (permalink / raw)
  To: file; +Cc: LTP List

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

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

* Re: [LTP] [BUG] I'm reporting a bug about file
  2012-04-26  5:19 ` Wanlong Gao
@ 2012-04-28  5:50   ` Zhouping Liu
  2012-04-28 11:12     ` Wanlong Gao
  0 siblings, 1 reply; 5+ messages in thread
From: Zhouping Liu @ 2012-04-28  5:50 UTC (permalink / raw)
  To: gaowanlong; +Cc: LTP List, file

> 
> 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,

hi, Wanlong

I checked the issue one weeks ago, downloaded different version
from ftp://ftp.astron.com/pub/file/, then I found the issue just occurred
in 5.07, 5.08, 5.09, 5.10 upstream version, and fixed
in 5.11, and I'm sure fedora 17 Beta(file version is 5.10) have fixed the issue.

--
Thanks,
Zhouping

------------------------------------------------------------------------------
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

* Re: [LTP] [BUG] I'm reporting a bug about file
  2012-04-28  5:50   ` Zhouping Liu
@ 2012-04-28 11:12     ` Wanlong Gao
  0 siblings, 0 replies; 5+ messages in thread
From: Wanlong Gao @ 2012-04-28 11:12 UTC (permalink / raw)
  To: Zhouping Liu; +Cc: LTP List, file

On 04/28/2012 01:50 PM, Zhouping Liu wrote:

>>
>> 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,
> 
> hi, Wanlong
> 
> I checked the issue one weeks ago, downloaded different version
> from ftp://ftp.astron.com/pub/file/, then I found the issue just occurred
> in 5.07, 5.08, 5.09, 5.10 upstream version, and fixed
> in 5.11, and I'm sure fedora 17 Beta(file version is 5.10) have fixed the issue.



OK, nice, thanks a lot Zhouping.

Regards,
Wanlong Gao

> 
> --
> Thanks,
> Zhouping
> 



------------------------------------------------------------------------------
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

* Re: [LTP] [BUG] I'm reporting a bug about file
  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 21:23 ` Christos Zoulas
  1 sibling, 0 replies; 5+ messages in thread
From: Christos Zoulas @ 2012-04-28 21:23 UTC (permalink / raw)
  To: gaowanlong, File Utility; +Cc: LTP List

On Apr 26, 11:52am, gaowanlong@cn.fujitsu.com (Wanlong Gao) wrote:
-- Subject: [BUG] I'm reporting a bug about file

| Do you think this is a bug, or I missed something?

Bug.

| Can you file command guys give me some idea about this?

Mine says (5.11):

t.c: C source, ASCII text

christos

------------------------------------------------------------------------------
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.