summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2016-06-20 18:54:21 +0200
committerFranck Bui <fbui@suse.com>2016-06-20 18:55:09 +0200
commit8ce0611e42c2b0d11007e2172edaa86ce4e4125d (patch)
tree255c01835bc6d767d99a0dbcf1c1e3d2b5895a37 /src/core
parentaffd7ed1a923b0df8479cff1bd9eafb625fdaa66 (diff)
Revert "do not pass-along the environment from the kernel or initrd"
This reverts commit ce8aba568156f2b9d0d3b023e960cda3d9d7db81. We should pass an environment as close as possible to what we originally got.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/main.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/main.c b/src/core/main.c
index cef7575937..40d7ff9be5 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1995,10 +1995,6 @@ finish:
args[i++] = sfd;
args[i++] = NULL;
- /* do not pass along the environment we inherit from the kernel or initrd */
- if (switch_root_dir)
- (void) clearenv();
-
assert(i <= args_size);
/*