mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
Fix to simplify the test
This commit is contained in:
@ -178,7 +178,7 @@ if ($user eq "*") {
|
||||
elsif ($user eq "root" && $remote_user ne $user && !$in{'user'}) {
|
||||
# If possible, start with a sudo-capable user
|
||||
my @uinfo = getpwnam($remote_user);
|
||||
if (defined($uinfo[0]) && $uinfo[7]) {
|
||||
if (@uinfo && $uinfo[7]) {
|
||||
$user = $remote_user;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user