[PATCH] add yesno helper function

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Apr 2 15:18:51 UTC 2010


On Fri, Apr 02, 2010 at 08:10:44AM +0200, Denys Vlasenko wrote:
>On Thursday 18 March 2010 12:27, Bernhard Reutner-Fischer wrote:
>> untested

>This prefers longer matches: "foo" = "foobarbaz" preferred
>over "foo" = "foobar". Don't see why it should be this way.
>More logical is to return -1, since the match is ambiguous in this case.
>
>You calculate strlen(strings) twice.

>How about this patch?

yes, what i ment to say :) please install (except the 'yesno' part,
let's put that into brctl directly with a note to factoring 'yesno'
iff other users pop up).

thanks!


More information about the busybox mailing list