aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2013-08-23 23:12:16 +0000
committerAlan Somers <asomers@FreeBSD.org>2013-08-23 23:12:16 +0000
commit2adf57829e4883498a3534ae7a11d63bdd7aaaee (patch)
tree6c566ba0147d8327f1c62f8690b8196f664591ab
parent30e71983d0d6c11138f4fd0ddd37e5d9f5bcc216 (diff)
downloadsrc-2adf57829e4883498a3534ae7a11d63bdd7aaaee.tar.gz
src-2adf57829e4883498a3534ae7a11d63bdd7aaaee.zip
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
Notes
Notes: svn path=/head/; revision=254743
-rw-r--r--etc/network.subr6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/network.subr b/etc/network.subr
index f690725ef8fb..7dfb328b37f8 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -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