GNU bug report logs - #17126
error of relative symbolic link with directory

Previous Next

Package: coreutils;

Reported by: Er-Min Wang <wagermn <at> gmail.com>

Date: Fri, 28 Mar 2014 00:04:02 UTC

Severity: normal

Tags: patch

Merged with 14116, 23564

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17126 in the body.
You can then email your comments to 17126 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#17126; Package coreutils. (Fri, 28 Mar 2014 00:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Er-Min Wang <wagermn <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 28 Mar 2014 00:04:02 GMT) Full text and rfc822 format available.

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

From: Er-Min Wang <wagermn <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: error of relative symbolic link with directory
Date: Thu, 27 Mar 2014 23:49:19 GMT
[Message part 1 (text/plain, inline)]
[image: 内嵌图片 1]
-- 
Er-Min Wang
[Message part 2 (text/html, inline)]
[Terminal_001.png (image/png, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#17126; Package coreutils. (Fri, 28 Mar 2014 00:19:02 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: Er-Min Wang <wagermn <at> gmail.com>
Cc: 17126 <at> debbugs.gnu.org
Subject: Re: bug#17126: error of relative symbolic link with directory
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.




Forcibly Merged 14116 17126. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Fri, 28 Mar 2014 00:19:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-coreutils <at> gnu.org:
bug#17126; Package coreutils. (Fri, 28 Mar 2014 00:22:02 GMT) Full text and rfc822 format available.

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

From: Eric Blake <eblake <at> redhat.com>
To: Er-Min Wang <wagermn <at> gmail.com>, 17126 <at> debbugs.gnu.org
Subject: Re: bug#17126: error of relative symbolic link with directory
Date: Thu, 27 Mar 2014 18:20:57 -0600
[Message part 1 (text/plain, inline)]
On 03/27/2014 05:49 PM, Er-Min Wang wrote:
> [image: 内嵌图片 1]

We prefer plain text.  Spending 105 kb on a png when a transcript of
your console session would occupy less than 1 kb is a waste of bandwidth.

At any rate, I tried and failed to reproduce your setup:

$ cd /tmp/
$ mkdir -p aaa/aaa1 bbb
$ cd aaa
$ ln -fnrsv aaa1 ../bbb/
‘../bbb/aaa1’ -> ‘../aaa/aaa1’
$ ln -fnrsv aaa1 ../bbb/
‘../bbb/aaa1’ -> ‘../aaa/aaa1’


Using 'tree(1)' to display your directory does not necessarily provide
enough information (although it did mention that it listed 3
directories, so I'm assuming aaa1 is an empty directory - but that's
what I used above in my reproduction attempt).  Could you instead please
show 'ls -lR aaa bbb' before your 'cd aaa' step, so we have a more
complete picture of your starting setup?

Also, it would help if you explained what you thought was odd - your
graphic kind of hints at that, by how it shows the same command executed
twice with different outputs, but you could have provided more details.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 25 Apr 2014 11:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Tue, 17 May 2016 16:11:02 GMT) Full text and rfc822 format available.

Forcibly Merged 14116 17126 23564. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Tue, 17 May 2016 16:11:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 15 Jun 2016 11:24:03 GMT) Full text and rfc822 format available.

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

Previous Next


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