From: Masashi Honma Date: Sat, 30 Dec 2017 20:35:28 +0000 (+0900) Subject: tests: Fix Permission denied on Fedora X-Git-Tag: hostap_2_7~552 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ede4f68e0a5e398aa1773cbfab651083ee7dfa5c;p=thirdparty%2Fhostap.git tests: Fix Permission denied on Fedora On Fedora 26, start.sh fails with these error messages. Failed to connect to wpa_supplicant global interface: /tmp/wpas-wlan0 error: Permission denied Failed to connect to wpa_supplicant global interface: /tmp/wpas-wlan0 error: Permission denied ... This is because Fedora 26 uses "wheel" group as administrative group. Signed-off-by: Masashi Honma --- diff --git a/tests/hwsim/start.sh b/tests/hwsim/start.sh index fe4621273..527ee22ed 100755 --- a/tests/hwsim/start.sh +++ b/tests/hwsim/start.sh @@ -58,6 +58,8 @@ fi if groups | tr ' ' "\n" | grep -q ^admin$; then GROUP=admin +elif groups | tr ' ' "\n" | grep -q ^wheel$; then + GROUP=wheel else GROUP=adm fi