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
os.mkdir() handles SETGID inconsistently #36388
Comments
Under FreeBSD 4.4, with the 2.1.2, 2.1.1 or 1.5.2 |
Logged In: YES This is not a bug. The posix module exposes functions from If you need a function that makes certain additional |
Logged In: YES On Mac OS X which is also a BSD derivative the mode argument to mkdir()is completely ignored. This becomes more of an issue when makedirs() is used because a simple chmod (which does work) is not sufficient if multiple directories were created. |
Logged In: YES It's also quite inconvenient for cross platform portability IWBNI Python's default os.mkdir() provided that cross |
Logged In: YES For the record: I cannot reproduce what dgrassi |
Logged In: YES Indeed MAC OS X mkdir() is correct, it abides by umask. |
Logged In: YES POSIX specifies The file permission bits of the new directory shall be (see S_ISGID is such an additional bit, so its meaning is So I'd rather honor system policies than trying to cheat them. *If* somebody tries to produce a patch to provide that |
Logged In: YES Martin, I agree with all your requirements (this shouldn't |
Logged In: YES No one seems interested in providing a patch, and there's been no |
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: