bpo-40014: Fix os.getgrouplist() on macOS (GH-19118) · python/cpython@8ec7370 · GitHub
Skip to content

Commit 8ec7370

Browse files
authored
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.
1 parent bd409bb commit 8ec7370

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions

Modules/posixmodule.c

Lines changed: 19 additions & 0 deletions

0 commit comments

Comments
 (0)