commit | 21bee0bd71e1ad270274499f9f58194ebb52e236 | [log] [tgz] |
---|---|---|
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Mon Mar 23 12:18:41 2020 -0700 |
committer | GitHub <noreply@github.com> | Mon Mar 23 12:18:41 2020 -0700 |
tree | 8681f28fefb483a99aeb3bb4c105092a083677bd | |
parent | c959fa9353b92ce95dd7fe3f25fe65bacbe22338 [diff] |
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>