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
Document unique behavior of 'getgroups' on OSX #54642
Comments
Per bpo-7900, os.getgroups on OSX does not behave the same way as on any other unix platform. This seems worthy of a documentation note, since anyone trying to write portable code could get bit by this. I don't really understand the relationship on OSX between what the current os.getgroups returns, what the normal unix os.getgroups returns, and what things a process can actually *do*, so I can't write that documentation. Hopefully someone else can. A doc note is probably also needed about the relationship between os.setgroups and os.getgroups on OSX, which again I do not understand and so cannot write. |
I do understand the issue, but I'm not sure if I can write it down consisely. I've attached an initial attempt (patch is relative to the default branch, I'll port to 2.7 and 3.2 if it looks OK) |
Here's a revised doc patch. As noted from my investigation in bpo-7900, the key getgroups behavior change is with the OS X 10.6 ABI (so > 10.5), not 10.5. |
This one LGTM, still applies cleanly against current tip and is languishing for a way to long time. Commit & close? |
New changeset 2468b58f7fce by Ned Deily in branch '2.7': New changeset 5c801899cd6d by Ned Deily in branch '3.2': New changeset e7d545a5f6bc by Ned Deily in branch 'default': |
Committed with minor revisions for 2.7.4, 3.2.4, and 3.3.0a3. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: