[systemd-commits] src/main.c
Lennart Poettering
lennart at kemper.freedesktop.org
Mon Oct 25 12:05:13 PDT 2010
src/main.c | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 1104f3c1604874c2b742e761b56f4349fe3e1e58
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 25 21:05:04 2010 +0200
systemd: unset HOME and TERM set from the kernel
diff --git a/src/main.c b/src/main.c
index 88ba09d..9a51a91 100644
--- a/src/main.c
+++ b/src/main.c
@@ -973,6 +973,11 @@ int main(int argc, char *argv[]) {
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
arg_running_as == MANAGER_SYSTEM);
+ /* Unset some environment variables passed in from the kernel
+ * that don't really make sense for us. */
+ unsetenv("HOME");
+ unsetenv("TERM");
+
/* Move out of the way, so that we won't block unmounts */
assert_se(chdir("/") == 0);
More information about the systemd-commits
mailing list