svn commit: r254743 - head/etc
Alan Somers
asomers at FreeBSD.org
Fri Aug 23 23:12:17 UTC 2013
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
More information about the svn-src-head
mailing list