From: Lennart Poettering Date: Fri, 19 Jan 2024 17:05:28 +0000 (+0100) Subject: vmspawn: use execv() rather than execve() if we just want to pass 'environ' as env... X-Git-Tag: v256-rc1~1083^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02aacdcf9658b87eb6c43ca7bebac2448046c1c5;p=thirdparty%2Fsystemd.git vmspawn: use execv() rather than execve() if we just want to pass 'environ' as env block --- diff --git a/src/vmspawn/vmspawn.c b/src/vmspawn/vmspawn.c index d846a4a3359..a136ae4c3c3 100644 --- a/src/vmspawn/vmspawn.c +++ b/src/vmspawn/vmspawn.c @@ -691,7 +691,7 @@ static int run_virtual_machine(void) { if (setenv("LANG", "C.UTF-8", 0) < 0) return log_oom(); - execve(qemu_binary, cmdline, environ); + execv(qemu_binary, cmdline); log_error_errno(errno, "Failed to execve %s: %m", qemu_binary); _exit(EXIT_FAILURE); }