]> 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:21:07 +0000 (12:21 -0700)
committerGitHub <noreply@github.com>
Mon, 23 Mar 2020 19:21:07 +0000 (12:21 -0700)
commit1cdc61c7673f71f2cef57715e482c84efda6d9e0
treecc6bfec407abf8a6b3c17c626fae6c4b3ab7a7b2
parent5765acaf64cc2c52ce8a35de9407faddf6885598
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