]> git.ipfire.org Git - thirdparty/hostap.git/commit
browser-android: Use execv() directly instead of os_exec()
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 21 Oct 2014 11:16:06 +0000 (14:16 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 21 Oct 2014 20:32:17 +0000 (23:32 +0300)
commitccf79ab256f132954b063649227c1bc08d4ec973
tree623ef1e839c4f9bdf9025ad9e5ec0adc9e48b8bd
parentc94382259dc1d2977e3c8b0304eef3df18f4e0b0
browser-android: Use execv() directly instead of os_exec()

This allows the URL to be passed as a single argument to the program
instead of getting split into multiple by os_exec(). This makes the
operation more robust for cases where the URL could have been received
from an external source and could potentially add extra arguments to the
command line.

In addition, fix the /system/bin/input execution by using system() for
it instead of execv() through os_exec(). /system/bin/input is a script
that execv() won't be able to run. Since the full command line is
specified, system() can be used for this. The keycode is also changed
from 3 to KEYCODE_HOME to make this work with current Android version.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/utils/browser-android.c