mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Set HOME to correct path for the user being run as
This commit is contained in:
@@ -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/^.*\///;
|
||||
|
||||
Reference in New Issue
Block a user