GNU bug report logs - #48349
28.0.50; Problem in dired with symbolic links to Tramp-syntax files

Previous Next

Package: emacs;

Reported by: Lars Ingebrigtsen <larsi <at> gnus.org>

Date: Tue, 11 May 2021 13:24:01 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 28.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

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 48349 in the body.
You can then email your comments to 48349 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-gnu-emacs <at> gnu.org:
bug#48349; Package emacs. (Tue, 11 May 2021 13:24:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lars Ingebrigtsen <larsi <at> gnus.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 11 May 2021 13:24:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; Problem in dired with symbolic links to Tramp-syntax files
Date: Tue, 11 May 2021 15:22:59 +0200
Apparently dired passes symlinks to Tramp in unfortunate ways.

For instance:

(cd /tmp; ln -s /sudo:root <at> localhost:/tmp/foo bar)
emacs -Q /tmp/

will infloop asking for a password -- `C-g' will break, but it'll just
ask again apparently forever, and you have to kill Emacs to get out of
the loop.

(cd /tmp; ln -s /sudo:root <at> nosuchhost:/tmp/foo bar)
emacs -Q /tmp/

won't even give you a prompt, but won't display anything -- hanging
while resolving the "nosuchhost" name?

I haven't tried to debug either case.


In GNU Emacs 28.0.50 (build 71, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0)
 of 2021-05-10 built on xo
Repository revision: aa354dd55b213b86ee8e3aa0365a6ad915838458
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12010000
System Description: Debian GNU/Linux bullseye/sid

Configured using:
 'configure --with-native-compilation'

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48349; Package emacs. (Wed, 12 May 2021 18:18:01 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 48349 <at> debbugs.gnu.org
Subject: Re: bug#48349: 28.0.50; Problem in dired with symbolic links to
 Tramp-syntax files
Date: Wed, 12 May 2021 20:16:58 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

Hi Lars,

> Apparently dired passes symlinks to Tramp in unfortunate ways.
>
> For instance:
>
> (cd /tmp; ln -s /sudo:root <at> localhost:/tmp/foo bar)
> emacs -Q /tmp/
>
> will infloop asking for a password -- `C-g' will break, but it'll just
> ask again apparently forever, and you have to kill Emacs to get out of
> the loop.
>
> I haven't tried to debug either case.

This is a collateral damage of 824d1a57ec8e7c90b01af6665de5a114529170df
in function file-name-non-special. Brrrr :-(

I will try to see how to fix this, w/o loosing the solution for bug#48177.

Best regards, Michael.




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Thu, 13 May 2021 12:03:02 GMT) Full text and rfc822 format available.

Notification sent to Lars Ingebrigtsen <larsi <at> gnus.org>:
bug acknowledged by developer. (Thu, 13 May 2021 12:03:02 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 48349-done <at> debbugs.gnu.org
Subject: Re: bug#48349: 28.0.50; Problem in dired with symbolic links to
 Tramp-syntax files
Date: Thu, 13 May 2021 14:02:32 +0200
Version: 28.1

Michael Albinus <michael.albinus <at> gmx.de> writes:

Hi Lars,

>> Apparently dired passes symlinks to Tramp in unfortunate ways.
>>
>> For instance:
>>
>> (cd /tmp; ln -s /sudo:root <at> localhost:/tmp/foo bar)
>> emacs -Q /tmp/
>>
>> will infloop asking for a password -- `C-g' will break, but it'll just
>> ask again apparently forever, and you have to kill Emacs to get out of
>> the loop.
>>
>> I haven't tried to debug either case.
>
> This is a collateral damage of 824d1a57ec8e7c90b01af6665de5a114529170df
> in function file-name-non-special. Brrrr :-(
>
> I will try to see how to fix this, w/o loosing the solution for bug#48177.

Should be fixed now in master. Closing the bug.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48349; Package emacs. (Thu, 13 May 2021 12:06:02 GMT) Full text and rfc822 format available.

Message #16 received at 48349-done <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 48349-done <at> debbugs.gnu.org
Subject: Re: bug#48349: 28.0.50; Problem in dired with symbolic links to
 Tramp-syntax files
Date: Thu, 13 May 2021 14:05:03 +0200
Michael Albinus <michael.albinus <at> gmx.de> writes:

> Should be fixed now in master. Closing the bug.

Yup; I can confirm that it's fixed.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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

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

Previous Next


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