3 ms·
> 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 notwiths
by geocar 10y ago
> 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.