[BusyBox] Re: Re: [PATCH] Bug in ifconfig if interface names have 2 digits

Harald Küthe Harald.Kuethe at controlware.de
Thu Jul 22 08:13:09 UTC 2004


Hello Glen, 

I tested your patch and it works the same way.
So your version shall be used because of less code.

Regards
Harald

>On Wed, 21 Jul 2004 08:24:50 +0200
>"Harald Küthe" <Harald.Kuethe at controlware.de> wrote:

>> I'm generating lots of network interfaces with the names hdlc0 to
>> hdlc29 When I do a ifconfig the hdlc interfaces are not ín the correct
>> order and are listed twice. The problem comes from the nstrcmp()
>> function in libbb/interface.c (the comparison of e.g. hdlc19 with
>> hdlc1 returns a wrong result) .
>> 
>> Following patch fixes it:

>Can you try the attached patch instead and see if it works, its a bit
>smaller.


>Glenn




More information about the busybox mailing list