bash-cache icon indicating copy to clipboard operation
bash-cache copied to clipboard

ln -sfn is not atomic

Open dimo414 opened this issue 3 years ago • 2 comments

According to this post ln -sfn isn't actually atomic, despite the comment here. Need to confirm this is actually broken and then fix, presumably to the rename approach described in the post.

dimo414 avatar Apr 25 '21 20:04 dimo414

bkt uses the rename pattern, for reference.

dimo414 avatar Oct 07 '21 22:10 dimo414

A recent comment on the same answer claims that the ln in modern coreutils does the atomic rename approach now.

devkev avatar Nov 23 '22 06:11 devkev