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
This commit is contained in:
Alan Somers 2013-08-23 23:12:16 +00:00
parent 30e71983d0
commit 2adf57829e

View File

@ -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