Fix init not respecting the home directory from /etc/passwd.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-03-29 16:46:44 +01:00
parent 2161a0e0e3
commit c93a434749
1 changed files with 1 additions and 1 deletions

View File

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