fix: atomic symlink replacement in cert client #34
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
mod-nag
mod-nag
mod-nag
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
nagonag
nagonag/ignore
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
heiko/cert-proxy!34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/23-atomic-symlink-replace"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #23.
Summary
Test plan
Correct fix.
rename(2)is atomic on POSIX so readers never see a missing symlink.Minor (non-blocker):
assert.NoFileExists(t, name+".tmp")would replace the manual Lstat+IsNotExist check in both tests.