mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
do not pass-along the environment from the kernel or initrd
This commit is contained in:
parent
82659fd757
commit
ce8aba5681
@ -1776,6 +1776,10 @@ finish:
|
||||
args[i++] = sfd;
|
||||
args[i++] = NULL;
|
||||
|
||||
/* do not pass along the environment we inherit from the kernel or initrd */
|
||||
if (switch_root_dir)
|
||||
clearenv();
|
||||
|
||||
assert(i <= args_size);
|
||||
execv(args[0], (char* const*) args);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user