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);