aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/browser-system.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/browser-system.c')
-rw-r--r--src/utils/browser-system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/browser-system.c b/src/utils/browser-system.c
index 2884d341..a080e2cb 100644
--- a/src/utils/browser-system.c
+++ b/src/utils/browser-system.c
@@ -92,7 +92,7 @@ int hs20_web_browser(const char *url)
return -1;
}
- if (system(cmd) != 0) {
+ if (os_exec("/usr/bin/x-www-browser", url, 0) != 0) {
wpa_printf(MSG_INFO, "Failed to launch browser");
eloop_cancel_timeout(browser_timeout, NULL, NULL);
http_server_deinit(http);