Subject: Re: bug#17126: error of relative symbolic link with directory

From: Pádraig Brady <[email-masked]>
Date: Fri, 28 Mar 2014 00:18:11 +0000

unarchive 14116
forcemerge 14116 17126
stop

On 03/27/2014 11:49 PM, Er-Min Wang wrote:
> $ ln --version
> ln (GNU coreutils) 8.20
>
> $ mkdir -p aaa/aaa1 bbb
> $ tree .
> .
> |-- aaa
> |   `-- aaa1
> `-- bbb
>
> $ cd aaa
> $ ln -fnrsv aaa1 ../bbb/
> ‘../bbb/aaa1’ -> ‘../aaa/aaa1’
> $ ln -fnrsv aaa1 ../bbb/
> ‘../bbb/aaa1’ -> ‘aaa1’

Already fixed in the last 8.22 release:
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=e52293aa

You might want to log a bug with your distro to backport the fix?

thanks,
Pádraig.