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 bug in scratch file updates #4414

Merged
merged 1 commit into from
Nov 22, 2023
Merged

Fix bug in scratch file updates #4414

merged 1 commit into from
Nov 22, 2023

Conversation

tstat
Copy link
Member

@tstat tstat commented Nov 21, 2023

Overview

The system temp directory could be a different device (like a tmpfs), which would cause renameFile to fail since we are attempting to rename across device boundaries. To avoid this issue, create the temp file in the same directory as the unison scratch file that we will update.

Test coverage

manual

The system temp directory could be a different device (like a tmpfs),
which would cause renameFile to fail since we are attempting to rename
across device boundaries. To avoid this issue, create the temp file in
the same directory as the unison scratch file that we will update.
@tstat tstat requested a review from aryairani November 21, 2023 20:00
@aryairani
Copy link
Contributor

Ah good catch.

@aryairani aryairani added the ready-to-merge Apply this to a PR and it will get merged automatically once CI passes and 1 reviewer has approved label Nov 22, 2023
@mergify mergify bot merged commit 9a554b3 into trunk Nov 22, 2023
@mergify mergify bot deleted the travis/update-rename-fix branch November 22, 2023 02:05
@mergify mergify bot removed the ready-to-merge Apply this to a PR and it will get merged automatically once CI passes and 1 reviewer has approved label Nov 22, 2023
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