Fix init not respecting the home directory from /etc/passwd.
This commit is contained in:
parent
2161a0e0e3
commit
c93a434749
|
@ -189,7 +189,7 @@ int child()
|
||||||
{
|
{
|
||||||
setenv("USERNAME", passwd->pw_name, 1);
|
setenv("USERNAME", passwd->pw_name, 1);
|
||||||
home = passwd->pw_dir[0] ? passwd->pw_dir : default_home;
|
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;
|
shell = passwd->pw_shell[0] ? passwd->pw_shell : default_shell;
|
||||||
setenv("SHELL", shell, 1);
|
setenv("SHELL", shell, 1);
|
||||||
setenv("DEFAULT_STUFF", "NO", 1);
|
setenv("DEFAULT_STUFF", "NO", 1);
|
||||||
|
|
Loading…
Reference in New Issue