GNU bug report logs - #6052
Is this "ln" bug?

Previous Next

Package: coreutils;

Reported by: "Hoisko, Sakari (EXT-TietoEnator - FI/Tampere)" <sakari.hoisko.ext <at> nsn.com>

Date: Tue, 27 Apr 2010 13:19:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 6052-close <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: "Hoisko, Sakari (EXT-TietoEnator - FI/Tampere)" <sakari.hoisko.ext <at> nsn.com>
Cc: 6052-close <at> debbugs.gnu.org
Subject: Re: bug#6052: Is this "ln" bug?
Date: Tue, 27 Apr 2010 16:20:07 +0100
On 27/04/10 14:16, Hoisko, Sakari (EXT-TietoEnator - FI/Tampere) wrote:
> Hi,
> 
> Do you have some reason why -f (forced) parameter works ok if
> destionation where link point is a file, then it could update link by
> using forced mode.
> If destionation where link point is folder then -f parameter not update
> link in this situation.

That's because it's first dereferencing the passed symlink.
When updating links I use -n like:

ln -nsf $new_target link_name

cheers,
Pádraig.




This bug report was last modified 15 years and 64 days ago.

Previous Next


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