mirror of
https://github.com/ovh/the-bastion.git
synced 2025-02-24 23:54:27 +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};
|
||||
}
|
||||
|
||||
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…
Reference in a new issue