mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
Use &switch_to_unix_user
This commit is contained in:
@ -169,8 +169,7 @@ local @u = $user ? getpwnam($user) :
|
||||
getpwuid($access{'uid'});
|
||||
if ($u[2]) {
|
||||
@u || &error($text{'switch_euser'});
|
||||
($(, $)) = ($u[3], "$u[3] ".join(" ", $u[3], &other_groups($u[0])));
|
||||
($>, $<) = ($u[2], $u[2]);
|
||||
&switch_to_unix_user(\@u);
|
||||
umask(oct($access{'umask'}));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user