Subject: Re: bug#25342: GNU coreutils: race condition in "ln -f source dest"

From: Paul Eggert <[email-masked]>
Date: Wed, 4 Jan 2017 23:57:29 -0800

Mirsad Goran Todorovac wrote:
> Please consider the trace below.

As I don't know what you're tracing, I don't know what to consider.

But really, the basic idea is simple: renameat mishandles the case where old and 
new names are already hard links, and any code based on renameat needs to work 
around this problem. (We can't easily change renameat's behavior, as the 
behavior is required by POSIX.)