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

Improve umask handling and ability to mock for tests #106

Merged
merged 5 commits into from
Oct 2, 2024

Conversation

dholth
Copy link
Contributor

@dholth dholth commented Oct 2, 2024

Description

Split umask change from #96 to separate filter, umask test issues.

@dholth dholth requested a review from a team as a code owner October 2, 2024 17:39
@dholth dholth force-pushed the umask-not-default-argument branch from 8ea2a5f to 6d1cf2a Compare October 2, 2024 19:59
@dholth dholth force-pushed the umask-not-default-argument branch from 6d1cf2a to d37dbc4 Compare October 2, 2024 20:00
@@ -61,7 +61,7 @@ def chmod(self, tarinfo, targetpath):
umask.
"""
try:
os.chmod(targetpath, tarinfo.mode & (0o777 - self.umask))
os.chmod(targetpath, tarinfo.mode & (-1 & (~self.umask)))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

improved mask calculation

CHANGELOG.md Outdated Show resolved Hide resolved
@dholth dholth changed the title Mockable UMASK Improve umask handling and ability to mock for tests Oct 2, 2024
@dholth dholth merged commit ac61441 into main Oct 2, 2024
9 checks passed
@dholth dholth deleted the umask-not-default-argument branch October 2, 2024 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants