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

added umask handling when checking for file perms #43

Merged
merged 1 commit into from
Jun 12, 2017

Conversation

ephur
Copy link
Contributor

@ephur ephur commented May 26, 2017

Formatter also added a newline after assert

curmask = os.umask(0)
os.umask(curmask)

expected = 0o777 & ~curmask
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this pass the python 3 tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only tested this on Linux, but I did adjust the umask before running to verify it worked for any umask I set as well.

@retr0h retr0h merged commit 7759e81 into retr0h:master Jun 12, 2017
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