From 2dbc95284850f1d96e8a2e075080a1b1c17986f5 Mon Sep 17 00:00:00 2001 From: asomers Date: Fri, 23 Aug 2013 23:12:16 +0000 Subject: 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 --- etc/network.subr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc') 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 -- cgit v1.1