Commit af6fd1f
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>
1 parent 8cd48b6 commit af6fd1f
File tree
2 files changed
+29
-25
lines changed- Misc/NEWS.d/next/Library
- Modules
2 files changed
+29
-25
lines changedLines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6906 | 6906 | | |
6907 | 6907 | | |
6908 | 6908 | | |
| 6909 | + | |
6909 | 6910 | | |
6910 | | - | |
| 6911 | + | |
6911 | 6912 | | |
6912 | | - | |
| 6913 | + | |
6913 | 6914 | | |
6914 | | - | |
6915 | | - | |
| 6915 | + | |
| 6916 | + | |
| 6917 | + | |
6916 | 6918 | | |
6917 | | - | |
6918 | | - | |
6919 | | - | |
6920 | | - | |
6921 | | - | |
| 6919 | + | |
| 6920 | + | |
| 6921 | + | |
| 6922 | + | |
| 6923 | + | |
| 6924 | + | |
| 6925 | + | |
6922 | 6926 | | |
6923 | 6927 | | |
6924 | | - | |
6925 | | - | |
| 6928 | + | |
| 6929 | + | |
| 6930 | + | |
| 6931 | + | |
6926 | 6932 | | |
6927 | | - | |
6928 | | - | |
6929 | | - | |
6930 | | - | |
6931 | | - | |
| 6933 | + | |
| 6934 | + | |
| 6935 | + | |
| 6936 | + | |
| 6937 | + | |
| 6938 | + | |
6932 | 6939 | | |
| 6940 | + | |
| 6941 | + | |
6933 | 6942 | | |
6934 | | - | |
6935 | | - | |
6936 | | - | |
6937 | | - | |
6938 | | - | |
6939 | | - | |
6940 | 6943 | | |
6941 | 6944 | | |
6942 | 6945 | | |
| |||
0 commit comments