From 7a41fb3cbb13b2d885f178c95e0d1606e6a1c7d6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 22 Mar 2021 15:44:07 +0100 Subject: lib: use execvp() in system() Use execvp() instead of execv() to lookup the specified executable in $PATH. Signed-off-by: Jo-Philipp Wich --- lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.c b/lib.c index 54eb710..8150ec6 100644 --- a/lib.c +++ b/lib.c @@ -2260,7 +2260,7 @@ uc_system(uc_vm *vm, size_t nargs) goto fail; case 0: - execv(arglist[0], (char * const *)arglist); + execvp(arglist[0], (char * const *)arglist); exit(-1); break; -- cgit v1.2.3