cvs commit: src/etc network.subr
Andrey A. Chernov
ache at FreeBSD.org
Thu Mar 29 10:55:34 UTC 2007
ache 2007-03-29 10:55:34 UTC
FreeBSD src repository
Modified files:
etc network.subr
Log:
Fix get_if_var() with 3 args (i.e. with default)
All xxx_<ifname> flags are set to empty strings automatically earlier so
eval echo \${${prefix}${_if}${suffix}-${_default}}
not substitute the default but return just the empty string.
Fix it using
eval echo \${${prefix}${_if}${suffix}:-${_default}}
(i.e. treat empty strings as unset)
The bug manifistates itself with the following warning from checkyesno():
/etc/rc.d/dhclient: WARNING: $background_dhclient is not set properly -
see rc.conf(5)
Revision Changes Path
1.178 +1 -1 src/etc/network.subr
More information about the cvs-src
mailing list