fix: groupList: remove 9K group limit

This commit is contained in:
Stéphane Lesimple 2020-12-18 17:00:22 +00:00
parent 9d1d613554
commit 2117773945
No known key found for this signature in database
GPG key ID: 4B4A3289E9D35658

View file

@ -655,11 +655,9 @@ sub get_group_list {
return $_cache_get_group_list{$groupType};
}
my $antiloop = 9000;
my %groups;
setgrent();
while (my @nextgroup = getgrent()) {
$antiloop-- < 0 and last;
my ($name, $passwd, $gid, $members) = @nextgroup;
if ( $groupType eq 'key'
and $name =~ /^key/