From c93a4347491df3bb47aca092ae6d80fb3cb9b4b6 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 29 Mar 2014 16:46:44 +0100 Subject: [PATCH] Fix init not respecting the home directory from /etc/passwd. --- utils/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/init.cpp b/utils/init.cpp index 7d59d2ae..e99401c7 100644 --- a/utils/init.cpp +++ b/utils/init.cpp @@ -189,7 +189,7 @@ int child() { setenv("USERNAME", passwd->pw_name, 1); home = passwd->pw_dir[0] ? passwd->pw_dir : default_home; - setenv("HOME", default_home, 1); + setenv("HOME", home, 1); shell = passwd->pw_shell[0] ? passwd->pw_shell : default_shell; setenv("SHELL", shell, 1); setenv("DEFAULT_STUFF", "NO", 1);