Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Aug 2013 23:12:16 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r254743 - head/etc
Message-ID:  <201308232312.r7NNCGMU056592@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Fri Aug 23 23:12:16 2013
New Revision: 254743
URL: http://svnweb.freebsd.org/changeset/base/254743

Log:
  Correctly remove an interface's ipv4 address when the user calls
  "/etc/rc.d/netif stop XXX".  The old globbing pattern failed to account for the
  possibility of a tab occuring before "inet".
  
  Reviewed by:	will
  Approved by:	ken (mentor, implicit)
  MFC after:	Never (bug affects head only)
  Sponsored by:	Spectra Logic

Modified:
  head/etc/network.subr

Modified: head/etc/network.subr
==============================================================================
--- head/etc/network.subr	Fri Aug 23 22:55:52 2013	(r254742)
+++ head/etc/network.subr	Fri Aug 23 23:12:16 2013	(r254743)
@@ -661,9 +661,9 @@ ipv4_down()
 	for _inet in $inetList ; do
 		# get rid of extraneous line
 		case $_inet in
-		"")		break ;;
-		inet\ *)	;;
-		*)		continue ;;
+		"")				break ;;
+		\	inet\ *|inet\ *)	;;
+		*)				continue ;;
 		esac
 		[ -z "$_inet" ] && break
 



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