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 touch() failing on Windows #2014

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

pali6
Copy link
Contributor

@pali6 pali6 commented Nov 27, 2024

It seems like 79faa3e introduced an issue on Windows. In order to modify file modification time there it needs to be opened in write mode, otherwise it fails with an "Access is denied" OS error. This PR fixes that.

on Windows this is necessary to modify times of a file
@pali6 pali6 force-pushed the fix-windows-touch branch from 273f95c to 4401265 Compare November 27, 2024 12:14
Copy link
Contributor

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Ha, we had the same issue in bootstrap (the rustc build system), but I forgot about it here. Thanks!

@Kobzol Kobzol merged commit b43e268 into rust-lang:master Nov 27, 2024
11 checks passed
@pali6 pali6 deleted the fix-windows-touch branch November 27, 2024 21:36
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