]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40014: Fix os.getgrouplist() on macOS (GH-19118)
authorVictor Stinner <vstinner@python.org>
Mon, 23 Mar 2020 19:00:57 +0000 (20:00 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Mar 2020 19:00:57 +0000 (20:00 +0100)
commit8ec7370c89aa522602eb9604086ce9f09770953d
treeab139eeb1b37a3ceedc0ec852dea8bdeae03e045
parentbd409bb5b78e7ccac5fcda9ab4cec770552f3090
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.
Misc/NEWS.d/next/Library/2020-03-23-17-52-00.bpo-40014.Ya70VG.rst [new file with mode: 0644]
Modules/posixmodule.c