Problem with bb grep

Marc Blumentritt marc.blumentritt at arcor.de
Sun Nov 4 04:10:42 PST 2007


Denys Vlasenko schrieb:
>> 2.) There seems to be a bug in bb grep. I did this on my machine:
>>
>> hive ~ # busybox grep -Fow usbfs /proc/filesystems
>> Segmentation fault
>> hive ~ # busybox grep -Fo usbfs /proc/filesystems
>> Segmentation fault
>> hive ~ # busybox grep -F usbfs /proc/filesystems
>> nodev   usbfs
>> hive ~ # busybox grep -o usbfs /proc/filesystems
>> usbfs
>> hive ~ # busybox grep -w usbfs /proc/filesystems
>> nodev   usbfs
>> hive ~ # busybox grep -ow usbfs /proc/filesystems
>> usbfs
>> hive ~ # busybox grep usbfs /proc/filesystems
>> nodev   usbfs
>>
>> The first two should certainly not result in a Segmentation fault, right?
> 
> It's easier to track reports if you have one bug report per mail,
> not several unrelated bugs.
> 
> Try attached patch.

It does not work on my system (s. attached file). I'm using
busybox-1.7.2 on Gentoo. What could be wrong?

Regards,
Marc
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 8.patch-32068.out
Url: http://busybox.net/lists/busybox/attachments/20071104/d9973697/attachment.diff 


More information about the busybox mailing list