-
-
Notifications
You must be signed in to change notification settings - Fork 268
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 artifact directories not having traversal permissions #4075
base: master
Are you sure you want to change the base?
Conversation
It turns out that Windows requires the executable bit set if the `BYPASS_TRAVERSE_CHECKING` privilege is not attached to a user's account. It's simply more correct to ensure that our directories have this bit set, and unfortunately our `filemode()` function call is not complete on Windows and does not include this bit, so we manually add it in on Windows.
8f3bb7a
to
d7ba620
Compare
Is this related to JuliaLang/julia#52272? |
It may not fix all cases, but it is one way such issues arise. |
Should we also be setting this bit on directories in Tar.extract? |
In my tests, Tar.extract didn’t set any permissions on directories on windows. |
Shall we merge this and have it backported to the upcoming 1.10.7 (if there is still time?) and 1.11 as well? |
Why are we still modifying file permissions on Windows at all? I'm still completely convinced that we should do absolutely nothing to modify file permissions on Windows systems, see JuliaLang/julia#52272 (comment) for my explanation of that. |
It turns out that Windows requires the executable bit set if the
BYPASS_TRAVERSE_CHECKING
privilege is not attached to a user's account. It's simply more correct to ensure that our directories have this bit set, and unfortunately ourfilemode()
function call is not complete on Windows and does not include this bit, so we manually add it in on Windows.