[proxy] web.archive.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light
/ cpython Public
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.8] bpo-40014: Fix os.getgrouplist() (GH-19126) #19143

Merged
merged 1 commit into from Mar 24, 2020

Conversation

Copy link
Contributor

miss-islington commented Mar 24, 2020

Fix os.getgrouplist(): if getgrouplist() function fails because the
group list is too small, retry with a larger group list.

On failure, the glibc implementation of getgrouplist() sets ngroups
to the total number of groups. For other implementations, double the
group list size.
(cherry picked from commit f5c7cab)

Co-authored-by: Victor Stinner vstinner@python.org

https://bugs.python.org/issue40014

Fix os.getgrouplist(): if getgrouplist() function fails because the
group list is too small, retry with a larger group list.

On failure, the glibc implementation of getgrouplist() sets ngroups
to the total number of groups. For other implementations, double the
group list size.
(cherry picked from commit f5c7cab)

Co-authored-by: Victor Stinner <vstinner@python.org>
Copy link
Member

vstinner left a comment

LGTM, good bot.

Copy link
Contributor Author

miss-islington commented Mar 24, 2020

@vstinner: Status check is done, and it's a success .

miss-islington merged commit af6fd1f into python:3.8 Mar 24, 2020
miss-islington deleted the backport-f5c7cab-3.8 branch Mar 24, 2020
Copy link
Contributor Author

miss-islington commented Mar 24, 2020

@vstinner: Status check is done, and it's a success .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants