summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2013-08-23 23:12:16 +0000
committerasomers <asomers@FreeBSD.org>2013-08-23 23:12:16 +0000
commit2dbc95284850f1d96e8a2e075080a1b1c17986f5 (patch)
tree6c566ba0147d8327f1c62f8690b8196f664591ab /etc
parent0b9d56c1654a1504ab090d8cbab2d9ef1ba4c384 (diff)
downloadFreeBSD-src-2dbc95284850f1d96e8a2e075080a1b1c17986f5.zip
FreeBSD-src-2dbc95284850f1d96e8a2e075080a1b1c17986f5.tar.gz
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
Diffstat (limited to 'etc')
-rw-r--r--etc/network.subr6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/network.subr b/etc/network.subr
index f690725..7dfb328 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
OpenPOWER on IntegriCloud