Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Aug 2009 22:05:08 +0000 (UTC)
From:      Doug Barton <dougb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r196523 - head/etc
Message-ID:  <200908242205.n7OM58X2007726@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dougb
Date: Mon Aug 24 22:05:08 2009
New Revision: 196523
URL: http://svn.freebsd.org/changeset/base/196523

Log:
  Improve the case test to detect the presence of lo0 in the list of
  network_interfaces.
  
  Submitted by:	Christoph Mallon <christoph.mallon@gmx.de>

Modified:
  head/etc/network.subr

Modified: head/etc/network.subr
==============================================================================
--- head/etc/network.subr	Mon Aug 24 21:56:41 2009	(r196522)
+++ head/etc/network.subr	Mon Aug 24 22:05:08 2009	(r196523)
@@ -731,7 +731,7 @@ list_net_interfaces()
 		# lo0 is effectively mandatory, so help prevent foot-shooting
 		#
 		case "$_tmplist" in
-		lo0*|*lo0|*' lo0 '*)	;;	# This is fine, do nothing
+		lo0|'lo0 '*|*' lo0'|*' lo0 '*) ;; # This is fine, do nothing
 		*)	_tmplist="lo0 ${_tmplist}" ;;
 		esac
 		;;



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