diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-03-24 17:40:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 17:40:31 (GMT) |
commit | af6fd1faa68f57c11c862624798f8510b7cac68a (patch) | |
tree | c04b78f88b16c828d1987e63a8c0b32b23ca863b /Python/Python-ast.c | |
parent | 8cd48b60fde147087dca061e836c1a47156ac612 (diff) | |
download | cpython-af6fd1faa68f57c11c862624798f8510b7cac68a.zip cpython-af6fd1faa68f57c11c862624798f8510b7cac68a.tar.gz cpython-af6fd1faa68f57c11c862624798f8510b7cac68a.tar.bz2 |
bpo-40014: Fix os.getgrouplist() (GH-19126)
Fix os.getgrouplist(): if getgrouplist() function fails because the
group list is too small, retry with a larger group list.
On failure, the glibc implementation of getgrouplist() sets ngroups
to the total number of groups. For other implementations, double the
group list size.
(cherry picked from commit f5c7cabb2be4e42a5975ba8aac8bb458c8d9d6d7)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions