[Bug 256767] ifconfig(8) NOAUTO and rc.conf(5): untimely configuration (up) of a network interface when it should be down

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 26 Aug 2021 02:03:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256767

--- Comment #12 from Mason Loring Bliss <mason@blisses.org> ---
Created attachment 227436
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227436&action=edit
This patch appears to preserve NOAUTO behaviour.

This patch appears to preserve NOAUTO behaviour. I want to verify that the 
code that parses devd.conf is happy with the line continuation, although we 
see that style earlier in the file.

In network.subr the check is as follows:

autoif()
{
        local _tmpargs _arg
        _tmpargs=`_ifconfig_getargs $1`

        for _arg in $_tmpargs; do
                case $_arg in
                [Nn][Oo][Aa][Uu][Tt][Oo])
                        return 1
                        ;;
                esac
        done

        return 0
}

As yet untested: What does sysrc do if an entry is simply missing?

-- 
You are receiving this mail because:
You are the assignee for the bug.