]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40014: Fix os.getgrouplist() (GH-19126)
authorVictor Stinner <vstinner@python.org>
Tue, 24 Mar 2020 17:22:10 +0000 (18:22 +0100)
committerGitHub <noreply@github.com>
Tue, 24 Mar 2020 17:22:10 +0000 (18:22 +0100)
commitf5c7cabb2be4e42a5975ba8aac8bb458c8d9d6d7
tree3fcf2f5173005198c8a959fc03195220e74ab53f
parent4b3252cb764807fdb3a661b458d43e4af55cf4df
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.
Misc/NEWS.d/next/Library/2020-03-23-17-52-00.bpo-40014.Ya70VG.rst
Modules/posixmodule.c