mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Use &switch_to_unix_user
This commit is contained in:
@@ -40,10 +40,7 @@ if (&supports_users()) {
|
||||
$fileunix = $access{'fileunix'} || $remote_user;
|
||||
@uinfo = getpwnam($fileunix);
|
||||
if (@uinfo) {
|
||||
($(, $)) = ( $uinfo[3],
|
||||
"$uinfo[3] ".join(" ", $uinfo[3],
|
||||
&other_groups($uinfo[0])) );
|
||||
($>, $<) = ( $uinfo[2], $uinfo[2] );
|
||||
&switch_to_unix_user(\@uinfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user