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: always use absolute paths #323

Merged
merged 1 commit into from
Feb 8, 2025
Merged

fix: always use absolute paths #323

merged 1 commit into from
Feb 8, 2025

Conversation

Stebalien
Copy link
Owner

We used absolute paths in the builder when making directories and in create_named but this didn't cover Builder::make_in and technically introduced a small race in some unnamed tempfile cases (i.e., when we can't atomically create unnamed temporary files and need to create then immediately delete them).

Instead, we now resolve the filename into an absolute path inside the main create helper.

We used absolute paths in the builder when making directories and in
`create_named` but this didn't cover `Builder::make_in` and technically
introduced a small race in some unnamed tempfile cases (i.e., when we
can't atomically create unnamed temporary files and need to create then
immediately delete them).

Instead, we now resolve the filename into an absolute path inside the
main create helper.
@Stebalien Stebalien merged commit 8afa07a into master Feb 8, 2025
14 checks passed
@Stebalien Stebalien deleted the steb/fix-abs-path branch February 8, 2025 23:17
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.

1 participant