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

Fix: testrunner: Explicitly check permissions #410

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

cpuguy83
Copy link
Member

The file checker takes an os.FileMode which contains things other than just permissions.
Make the checker explictly call mode.Perm() to ensure it has just the permissions bits when checking.

This fixes an issue when checking permission on a directory.

The file checker takes an `os.FileMode` which contains things other than
just permissions.
Make the checker explictly call `mode.Perm()` to ensure it has *just*
the permissions bits when checking.

This fixes an issue when checking permission on a directory.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83 cpuguy83 requested a review from a team as a code owner October 22, 2024 16:43
@cpuguy83 cpuguy83 added this to the v0.10.0 milestone Oct 22, 2024
@pmengelbert pmengelbert merged commit 9ea734e into Azure:main Oct 25, 2024
9 checks passed
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