]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40014: Fix os.getgrouplist() on macOS (GH-19118)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 Mar 2020 19:18:41 +0000 (12:18 -0700)
committerGitHub <noreply@github.com>
Mon, 23 Mar 2020 19:18:41 +0000 (12:18 -0700)
commit21bee0bd71e1ad270274499f9f58194ebb52e236
tree8681f28fefb483a99aeb3bb4c105092a083677bd
parentc959fa9353b92ce95dd7fe3f25fe65bacbe22338
bpo-40014: Fix os.getgrouplist() on macOS (GH-19118)

On macOS, getgrouplist() returns a non-zero value without setting
errno if the group list is too small. Double the list size and call
it again in this case.
(cherry picked from commit 8ec7370c89aa522602eb9604086ce9f09770953d)

Co-authored-by: Victor Stinner <vstinner@python.org>
Misc/NEWS.d/next/Library/2020-03-23-17-52-00.bpo-40014.Ya70VG.rst [new file with mode: 0644]
Modules/posixmodule.c