ifconfig_blah0="authmode wpa" causes ifconfig_getargs() to interpret
authorSascha Wildner <swildner@dragonflybsd.org>
Mon, 4 Feb 2008 19:03:06 +0000 (19:03 +0000)
committerSascha Wildner <swildner@dragonflybsd.org>
Mon, 4 Feb 2008 19:03:06 +0000 (19:03 +0000)
commit1f03f592f83d5f3fc5291865c003f71a725f7059
treeb6fbee91a79d78c1feb41df292ec7009e7ff086f
parent639ba154b8c7a27dce08c3efd48e7d3a7501f5fe
ifconfig_blah0="authmode wpa" causes ifconfig_getargs() to interpret
"wpa" as an invitation to start wpa_supplicant(8) (and to strip it
from the line) instead of just passing "authmode wpa" to ifconfig(8)
as expected.

Fix this by adding some code to ifconfig_getargs() and wpaif() which
checks if "wpa" is an argument to "authmode".

Submitted-by: Frank W. Josellis <frank@dynamical-systems.org>
etc/network.subr