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 artifact directories not having traversal permissions #4075

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

staticfloat
Copy link
Member

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.

staticfloat added a commit to JuliaLang/julia that referenced this pull request Nov 5, 2024
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.
@giordano
Copy link
Contributor

giordano commented Nov 5, 2024

Is this related to JuliaLang/julia#52272?

@staticfloat
Copy link
Member Author

It may not fix all cases, but it is one way such issues arise.

@StefanKarpinski
Copy link
Member

Should we also be setting this bit on directories in Tar.extract?

@staticfloat
Copy link
Member Author

In my tests, Tar.extract didn’t set any permissions on directories on windows.

@ViralBShah
Copy link
Member

Shall we merge this and have it backported to the upcoming 1.10.7 (if there is still time?) and 1.11 as well?

@davidanthoff
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants