GNU bug report logs - #25342
ln: avoid race condition with "ln -f src dst"

Previous Next

Package: coreutils;

Reported by: Mirsad Goran Todorovac <mtodorov3_69 <at> yahoo.com>

Date: Mon, 2 Jan 2017 23:12:01 UTC

Severity: wishlist

Full log


Message #8 received at 25342 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Mirsad Goran Todorovac <mtodorov3_69 <at> yahoo.com>, 25342 <at> debbugs.gnu.org
Subject: Re: bug#25342: GNU coreutils: race condition in "ln -f source dest"
Date: Mon, 2 Jan 2017 17:07:56 -0800
Although I like the idea of changing "ln -f A B" to do the equivalent of "ln -f 
A B.tmp; mv B.tmp B" when B already exists, I'm not sure I'd want to have a new 
option to restore the old behavior, as that would add complexity for little real 
benefit.

Also, this behavior shouldn't be limited to ln; it should also be done by cp -l.




This bug report was last modified 6 years and 235 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.