[RFC] CIFS: Make sure IPv6 host uses numeric scope

Denys Vlasenko vda.linux at googlemail.com
Wed Sep 28 14:28:11 UTC 2016


On Wed, Sep 28, 2016 at 9:40 AM, Per Förlin <per.forlin at axis.com> wrote:
>> I modified code as follows:
>>
>>                 // If there is no "ip=..." option yet
>>                 if (!is_prefixed_with(filteropts, ",ip="+1)
>>                  && !strstr(filteropts, ",ip=")
>>                 ) {
> I'm would like to add "addr" as well.
> I'm not sure the syntax is correct I just repeated yours.
> if (!is_prefixed_with(filteropts, ",ip="+1)
>      && !strstr(filteropts, ",ip=")
>      && !is_prefixed_with(filteropts, ",addr="+1)
>      && !strstr(filteropts, ",addr=")
>   ) {

mount adds an "ip=xxx" option, not "addr=xxx".
It makes sense to make this addition conditional on user
not inserting his own "ip=yyy". Not on "addr=yyy".


More information about the busybox mailing list