Subject: Re: bug#47625: 28.0.50; dired-do-symlink creates invalid symlinks when using Tramp

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 06 May 2021 12:06:59 +0200

Filipp Gunbin <[email-masked]> writes:

> emacs -Q
> open dired at /sudo::/tmp/
> M-! touch foo
> S (dired-do-symlink) on foo, enter /tmp/bar (without tramp prefix) at
> the prompt
> g (refresh dired)
>
> The result is "bar -> /sudo:[email-masked]:/tmp/foo", which is
> an invalid symlink.

I can reproduce this bug in Emacs 28, but I haven't tried to debug it.
Perhaps it's obvious what's going wrong to somebody who knows how Tramp
works; Michael added to the CCs.

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