unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48349: 28.0.50; Problem in dired with symbolic links to Tramp-syntax files
@ 2021-05-11 13:22 Lars Ingebrigtsen
  2021-05-12 18:16 ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-11 13:22 UTC (permalink / raw)
  To: 48349


Apparently dired passes symlinks to Tramp in unfortunate ways.

For instance:

(cd /tmp; ln -s /sudo:root@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@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






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#48349: 28.0.50; Problem in dired with symbolic links to Tramp-syntax files
  2021-05-11 13:22 bug#48349: 28.0.50; Problem in dired with symbolic links to Tramp-syntax files Lars Ingebrigtsen
@ 2021-05-12 18:16 ` Michael Albinus
  2021-05-13 12:02   ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2021-05-12 18:16 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 48349

Lars Ingebrigtsen <larsi@gnus.org> writes:

Hi Lars,

> Apparently dired passes symlinks to Tramp in unfortunate ways.
>
> For instance:
>
> (cd /tmp; ln -s /sudo:root@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#48349: 28.0.50; Problem in dired with symbolic links to Tramp-syntax files
  2021-05-12 18:16 ` Michael Albinus
@ 2021-05-13 12:02   ` Michael Albinus
  2021-05-13 12:05     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2021-05-13 12:02 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 48349-done

Version: 28.1

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

Hi Lars,

>> Apparently dired passes symlinks to Tramp in unfortunate ways.
>>
>> For instance:
>>
>> (cd /tmp; ln -s /sudo:root@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#48349: 28.0.50; Problem in dired with symbolic links to Tramp-syntax files
  2021-05-13 12:02   ` Michael Albinus
@ 2021-05-13 12:05     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-13 12:05 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 48349-done

Michael Albinus <michael.albinus@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-13 12:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-11 13:22 bug#48349: 28.0.50; Problem in dired with symbolic links to Tramp-syntax files Lars Ingebrigtsen
2021-05-12 18:16 ` Michael Albinus
2021-05-13 12:02   ` Michael Albinus
2021-05-13 12:05     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).