[systemd-commits] src/core
Kay Sievers
kay at kemper.freedesktop.org
Mon Jul 29 17:16:06 PDT 2013
src/core/main.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit ce8aba568156f2b9d0d3b023e960cda3d9d7db81
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Jul 30 02:02:45 2013 +0200
do not pass-along the environment from the kernel or initrd
diff --git a/src/core/main.c b/src/core/main.c
index 91cbee2..8a73ad3 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -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);
}
More information about the systemd-commits
mailing list