News for hackers. Stuff that matters.
Re:How to change symlinks atomically (2005) by geocar on Sunday August 21, 2016 @05:48AM (#12330194)
> If you crash at (3) you can -- at least in principle -- have "link" pointing to garbage (most likely an empty file).

No, I don't think you can, bugs notwithstanding. A "link" (§3.130) is what POSIX calls a directory entry.

> But there is nothing in the standard about that.

The "standard" (POSIX) doesn't talk much about crashing, however if mkdir("a") could destroy "b" – even during a system crash (§3.387), then users would complain.

There are no comments on this comment yet.