mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
Use new API for clearing language
This commit is contained in:
@ -48,7 +48,8 @@ while(1) {
|
||||
sub os_most_recent_logins
|
||||
{
|
||||
my %rv;
|
||||
open(LASTLOG, "LANG=C lastlog |");
|
||||
&clean_language();
|
||||
open(LASTLOG, "lastlog |");
|
||||
while(<LASTLOG>) {
|
||||
s/\r|\n//g;
|
||||
if (/^(\S+)/) {
|
||||
@ -63,6 +64,7 @@ while(<LASTLOG>) {
|
||||
}
|
||||
}
|
||||
close(LASTLOG);
|
||||
&reset_environment();
|
||||
return \%rv;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user