GNU bug report logs - #14116
[PATCH] ln: allow to overwrite relative symlink

Previous Next

Package: coreutils;

Reported by: Rémy Lefevre <lefevreremy <at> gmail.com>

Date: Mon, 1 Apr 2013 15:18:02 UTC

Severity: normal

Tags: patch

Merged with 17126, 23564

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

Bug is archived. No further changes may be made.

Full log


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

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: 14116 <at> debbugs.gnu.org, P <at> draigBrady.com, lefevreremy <at> gmail.com
Subject: Re: bug#14116: [PATCH] ln: allow to overwrite relative symlink
Date: Thu, 04 Apr 2013 01:06:28 +0200
On 04/03/2013 07:43 PM, Pádraig Brady wrote:

> Subject: [PATCH 1/2] ln: --relative: fix updating of existing symlinks
> 
> Don't dereference an existing symlink being replaced.
> I.E. generate the symlink relative to the symlink's containing dir,
> rather than to some arbitrary place it points to.
> 
> * src/ln.c (convert_abs_rel): Don't consider the final component
> of the symlink name when canonicalizing, as we to avoid

s/as we to/as to/ ?

> dreferencing the final component.

s/dreferencing/dereferencing/

BTW: the commit message should reference this bug:
  http://bugs.gnu.org/14116

> Subject: [PATCH 2/2] doc: add details on ln --relative symlink resolution
> [...]
> @@ -34,4 +34,15 @@ ln -s dir1/dir2/f existing_link
>  ln -srf here existing_link
>  test $(readlink existing_link) = 'here' || fail=1
>  
> +# Demonstrate resolved symlinks used to generate relative links
> +# so here,'web/latest' will not be linked to the intermediate 'latest' link.

s/,/, /

Apart from the above nits, the 2 patches look good.

Have a nice day,
Berny





This bug report was last modified 9 years and 10 days ago.

Previous Next


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