vmspawn: use execv() rather than execve() if we just want to pass 'environ' as env block

This commit is contained in:
Lennart Poettering 2024-01-19 18:05:28 +01:00
parent 400da3e424
commit 02aacdcf96

View file

@ -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);
}