summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-03-23 19:00:57 (GMT)
committerGitHub <noreply@github.com>2020-03-23 19:00:57 (GMT)
commit8ec7370c89aa522602eb9604086ce9f09770953d (patch)
treeab139eeb1b37a3ceedc0ec852dea8bdeae03e045 /Misc
parentbd409bb5b78e7ccac5fcda9ab4cec770552f3090 (diff)
downloadcpython-8ec7370c89aa522602eb9604086ce9f09770953d.zip
cpython-8ec7370c89aa522602eb9604086ce9f09770953d.tar.gz
cpython-8ec7370c89aa522602eb9604086ce9f09770953d.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-03-23-17-52-00.bpo-40014.Ya70VG.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-03-23-17-52-00.bpo-40014.Ya70VG.rst b/Misc/NEWS.d/next/Library/2020-03-23-17-52-00.bpo-40014.Ya70VG.rst
new file mode 100644
index 0000000..58f14fa
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-03-23-17-52-00.bpo-40014.Ya70VG.rst
@@ -0,0 +1,3 @@
+Fix ``os.getgrouplist()``: on macOS, the ``getgrouplist()`` function 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.