Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2011 13:05:57 +0000 (UTC)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r226464 - head/etc/rc.d
Message-ID:  <201110171305.p9HD5v2O024413@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: des
Date: Mon Oct 17 13:05:57 2011
New Revision: 226464
URL: http://svn.freebsd.org/changeset/base/226464

Log:
  The rc_force test was inverted in the previous commit, so that dhclient ran
  for interfaces which were not configured for DHCP *unless* rc_force was set;
  the correct logic is to run dhclient for those interfaces *only if* rc_force
  is set.
  
  Broken by:	des@
  Noticed by:	everybody and his dog
  Submitted by:	rea@
  PR:		bin/161733

Modified:
  head/etc/rc.d/dhclient

Modified: head/etc/rc.d/dhclient
==============================================================================
--- head/etc/rc.d/dhclient	Mon Oct 17 12:22:09 2011	(r226463)
+++ head/etc/rc.d/dhclient	Mon Oct 17 13:05:57 2011	(r226464)
@@ -41,7 +41,7 @@ if [ -z $ifn ] ; then
 		echo 1>&2 "$0: no interface specified"
 		return 1
 	fi
-elif [ -n "${rc_force}" ] && ! dhcpif $ifn; then
+elif [ -z "${rc_force}" ] && ! dhcpif $ifn; then
 	return 1
 fi
 



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