Set HOME to correct path for the user being run as

This commit is contained in:
Jamie Cameron
2022-11-11 10:07:08 -08:00
parent 782f9ca351
commit a7ca787c16

View File

@@ -60,6 +60,7 @@ if ($config{'flavors'} == 1 ||
# Set terminal
$ENV{'TERM'} = 'xterm-256color';
$ENV{'HOME'} = $uinfo[7];
chdir($dir || $uinfo[7] || "/");
my $shell = $uinfo[8];
$shell =~ s/^.*\///;