Today in POSIX surprises: `ln -f` is not *quite* atomic due to the combined semantics of link() and rename(); it racily uses a temp file and if the stars align might unlink() an identially-named temp file created by another process.
I am *not* talking about rename(oldpath, oldpath). I am talking about rename(oldpath, newpath) where both are hard links to the same inode.
-
-
My bad, I've got this only after writing the answer, so I removed it
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.