qemu patch: diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 95d79ddc43..227d9b1b0e 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8537,7 +8537,7 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1, * before the execve completes and makes it the other * program's problem. */ - ret = get_errno(safe_execve(p, argp, envp)); + ret = get_errno(safe_execve(is_proc_myself(p, "exe") ? exec_path : p, argp, envp)); unlock_user(p, arg1, 0);
goto execve_end;
qemu patch: user/syscall. c b/linux- user/syscall. c .227d9b1b0e 100644 user/syscall. c user/syscall. c safe_execve( p, argp, envp)); safe_execve( is_proc_ myself( p, "exe") ? exec_path : p, argp, envp));
unlock_ user(p, arg1, 0);
diff --git a/linux-
index 95d79ddc43.
--- a/linux-
+++ b/linux-
@@ -8537,7 +8537,7 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,
* before the execve completes and makes it the other
* program's problem.
*/
- ret = get_errno(
+ ret = get_errno(
goto execve_end;