]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix Permission denied on Fedora
authorMasashi Honma <masashi.honma@gmail.com>
Sat, 30 Dec 2017 20:35:28 +0000 (05:35 +0900)
committerJouni Malinen <j@w1.fi>
Sat, 17 Feb 2018 16:56:38 +0000 (18:56 +0200)
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 <masashi.honma@gmail.com>
tests/hwsim/start.sh

index fe46212737f37289805c795c612a95afda60c936..527ee22ede5c7cae3b8fba7a7f11df419c84487c 100755 (executable)
@@ -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