Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Mar 2007 10:55:34 +0000 (UTC)
From:      "Andrey A. Chernov" <ache@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/etc network.subr
Message-ID:  <200703291055.l2TAtYu4038445@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703291055.l2TAtYu4038445>