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

rsc: Use mv to atomically fixup files #1551

Merged
merged 1 commit into from
Apr 29, 2024
Merged

rsc: Use mv to atomically fixup files #1551

merged 1 commit into from
Apr 29, 2024

Conversation

V-FEXrt
Copy link
Contributor

@V-FEXrt V-FEXrt commented Apr 29, 2024

There is a window of time where interrupting the fixup script will leave it on disk but with the wrong permissions which may interfere with later invocations of wake. Use mv + a temp file to atomically put the file on disk.

Copy link
Contributor

@colinschmidt colinschmidt left a comment

Choose a reason for hiding this comment

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

LGTM

@V-FEXrt V-FEXrt merged commit b960ecb into master Apr 29, 2024
12 checks passed
@V-FEXrt V-FEXrt deleted the rsc-atomic-mv branch April 29, 2024 22:34
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