mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix init not respecting the home directory from /etc/passwd.
This commit is contained in:
parent
2161a0e0e3
commit
c93a434749
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue