mirror of
https://github.com/ovh/the-bastion.git
synced 2025-02-25 08:04:38 +08:00
fix: groupList: remove 9K group limit
This commit is contained in:
parent
9d1d613554
commit
2117773945
1 changed files with 0 additions and 2 deletions
|
@ -655,11 +655,9 @@ sub get_group_list {
|
||||||
return $_cache_get_group_list{$groupType};
|
return $_cache_get_group_list{$groupType};
|
||||||
}
|
}
|
||||||
|
|
||||||
my $antiloop = 9000;
|
|
||||||
my %groups;
|
my %groups;
|
||||||
setgrent();
|
setgrent();
|
||||||
while (my @nextgroup = getgrent()) {
|
while (my @nextgroup = getgrent()) {
|
||||||
$antiloop-- < 0 and last;
|
|
||||||
my ($name, $passwd, $gid, $members) = @nextgroup;
|
my ($name, $passwd, $gid, $members) = @nextgroup;
|
||||||
if ( $groupType eq 'key'
|
if ( $groupType eq 'key'
|
||||||
and $name =~ /^key/
|
and $name =~ /^key/
|
||||||
|
|
Loading…
Reference in a new issue