Merge pull request #107 from ovh/itsover9000

fix: groupList: remove 9K group limit
pull/111/head
Stéphane Lesimple 5 years ago committed by GitHub
commit ebc3c2c6df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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/

Loading…
Cancel
Save