GNU bug report logs - #31199
Diff sym link bug

Previous Next

Package: diffutils;

Reported by: Alessandro <mirio <at> miriodev.net>

Date: Tue, 17 Apr 2018 15:01:02 UTC

Severity: normal

To reply to this bug, email your comments to 31199 AT debbugs.gnu.org.

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-diffutils <at> gnu.org:
bug#31199; Package diffutils. (Tue, 17 Apr 2018 15:01:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alessandro <mirio <at> miriodev.net>:
New bug report received and forwarded. Copy sent to bug-diffutils <at> gnu.org. (Tue, 17 Apr 2018 15:01:02 GMT) Full text and rfc822 format available.

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

From: Alessandro <mirio <at> miriodev.net>
To: bug-diffutils <at> gnu.org
Subject: Diff sym link bug
Date: Tue, 17 Apr 2018 16:17:59 +0200
[Message part 1 (text/plain, inline)]
Hi,

How to reproduce:

Scenario:

|dirA .. bar -> foo foo dirB .. |

Diff man

|-N, --new-file treat absent files as empty --no-dereference don't follow 
symbolic links |

Output

|$ diff --no-dereference dirA dirB > /dev/null $ diff -N --no-dereference 
dirA dirB > /dev/null diff: dirB/bar: No such file or directory |


Version:

diff (GNU diffutils) 3.6

It's seems a bug, any fix or workaround for that?


Thanks

[Message part 2 (text/html, inline)]

Information forwarded to bug-diffutils <at> gnu.org:
bug#31199; Package diffutils. (Tue, 17 Apr 2018 15:58:01 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Alessandro <mirio <at> miriodev.net>, 31199 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#31199: Diff sym link bug
Date: Tue, 17 Apr 2018 08:57:47 -0700
On 04/17/2018 07:17 AM, Alessandro wrote:
>
> It's seems a bug, any fix or workaround for that?
>
I don't see a bug. "Don't follow symbolic links" doesn't mean "Pretend 
symbolic links do not exist".





Information forwarded to bug-diffutils <at> gnu.org:
bug#31199; Package diffutils. (Tue, 17 Apr 2018 18:29:02 GMT) Full text and rfc822 format available.

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

From: Alessandro <mirio <at> miriodev.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>, 31199 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#31199: Diff sym link bug
Date: Tue, 17 Apr 2018 20:28:56 +0200
Hi,

The bug is why show the error and ignore -N on sym link.

Thx

(+ML)


On 17/04/2018 17:57, Paul Eggert wrote:
> On 04/17/2018 07:17 AM, Alessandro wrote:
>>
>> It's seems a bug, any fix or workaround for that?
>>
> I don't see a bug. "Don't follow symbolic links" doesn't mean "Pretend 
> symbolic links do not exist".
>





Information forwarded to bug-diffutils <at> gnu.org:
bug#31199; Package diffutils. (Tue, 17 Apr 2018 20:13:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Alessandro <mirio <at> miriodev.net>, 31199 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#31199: Diff sym link bug
Date: Tue, 17 Apr 2018 13:12:03 -0700
On 04/17/2018 11:28 AM, Alessandro wrote:
> The bug is why show the error and ignore -N on sym link. 

I think we are miscommunicating. What I am saying is that diff is not 
ignoring -N, and there is an error if one directory has a dangling 
symlink and another directory has nothing.





Information forwarded to bug-diffutils <at> gnu.org:
bug#31199; Package diffutils. (Tue, 17 Apr 2018 20:35:02 GMT) Full text and rfc822 format available.

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

From: Alessandro <mirio <at> miriodev.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>, 31199 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#31199: Diff sym link bug
Date: Tue, 17 Apr 2018 22:34:15 +0200
So, how we can solve it?


On 17/04/2018 22:12, Paul Eggert wrote:
> On 04/17/2018 11:28 AM, Alessandro wrote:
>> The bug is why show the error and ignore -N on sym link. 
>
> I think we are miscommunicating. What I am saying is that diff is not 
> ignoring -N, and there is an error if one directory has a dangling 
> symlink and another directory has nothing.
>





Information forwarded to bug-diffutils <at> gnu.org:
bug#31199; Package diffutils. (Tue, 17 Apr 2018 20:50:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Alessandro <mirio <at> miriodev.net>, 31199 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#31199: Diff sym link bug
Date: Tue, 17 Apr 2018 13:49:15 -0700
On 04/17/2018 01:34 PM, Alessandro wrote:
> So, how we can solve it? 

Perhaps 'diff' should not report an error in this situation if -N is 
specified.





Information forwarded to bug-diffutils <at> gnu.org:
bug#31199; Package diffutils. (Tue, 17 Apr 2018 20:54:02 GMT) Full text and rfc822 format available.

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

From: Alessandro <mirio <at> miriodev.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>, 31199 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#31199: Diff sym link bug
Date: Tue, 17 Apr 2018 22:53:39 +0200
Yep i know but i need to use -N on my scenario.


On 17/04/2018 22:49, Paul Eggert wrote:
> On 04/17/2018 01:34 PM, Alessandro wrote:
>> So, how we can solve it? 
>
> Perhaps 'diff' should not report an error in this situation if -N is 
> specified.
>





Information forwarded to bug-diffutils <at> gnu.org:
bug#31199; Package diffutils. (Wed, 18 Apr 2018 19:27:02 GMT) Full text and rfc822 format available.

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

From: Alessandro <mirio <at> miriodev.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>, 31199 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#31199: Diff sym link bug
Date: Wed, 18 Apr 2018 21:26:47 +0200
Any update? Can you give me a temporary workaround for that?

Thanks


On 17/04/2018 22:53, Alessandro wrote:
> Yep i know but i need to use -N on my scenario.
>
>
> On 17/04/2018 22:49, Paul Eggert wrote:
>> On 04/17/2018 01:34 PM, Alessandro wrote:
>>> So, how we can solve it? 
>>
>> Perhaps 'diff' should not report an error in this situation if -N is 
>> specified.
>>
>





Information forwarded to bug-diffutils <at> gnu.org:
bug#31199; Package diffutils. (Wed, 18 Apr 2018 19:33:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Alessandro <mirio <at> miriodev.net>, 31199 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#31199: Diff sym link bug
Date: Wed, 18 Apr 2018 12:32:24 -0700
On 04/18/2018 12:26 PM, Alessandro wrote:
> Any update? Can you give me a temporary workaround for that? 

I do not have any update, no. My volunteer time is limited and this is 
lower priority right now.





This bug report was last modified 7 years and 59 days ago.

Previous Next


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