mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
vmspawn: use execv() rather than execve() if we just want to pass 'environ' as env block
This commit is contained in:
parent
400da3e424
commit
02aacdcf96
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue