Skip to content
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

Do chmod to _really_ get permissions set. #457

Merged
merged 4 commits into from
Sep 21, 2023
Merged

Conversation

schlafly
Copy link
Contributor

This adds a couple lines calling os.chmod(...) after os.makedirs(..., mode=...) to really get permissions set. Apparently os.makedirs(..., mode=...) applies the umask on top of the selected mode, while os.chmod(...) is explicit.

@schlafly schlafly requested a review from araichoor July 28, 2023 16:41
@schlafly schlafly marked this pull request as ready for review August 3, 2023 16:18
@araichoor
Copy link
Contributor

@schlafly: sorry if I ve left that PR in the limbos..
looks good, I m going to merge it, but could you before that update the docs/changes.rst file in your branch with mentioning this PR?

@schlafly
Copy link
Contributor Author

I've updated the change log, thanks!

@araichoor araichoor merged commit b27b37e into main Sep 21, 2023
14 checks passed
@araichoor araichoor deleted the chmod-permissions branch September 21, 2023 20:51
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.

2 participants