Subject: 28.0.50; dired-do-symlink creates invalid symlinks when using Tramp

From: Filipp Gunbin <[email-masked]>
Date: Tue, 06 Apr 2021 23:29:39 +0300

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.

In GNU Emacs 28.0.50 (build 8, x86_64-apple-darwin20.3.0, NS appkit-2022.30 Version 11.2.1 (Build 20D74))
 of 2021-04-05 built on fgunbin.local
Repository revision: 257caab1d0bea17fb9bfb5a9e2c782cf96a7d052
Repository branch: master
System Description:  macOS 11.2.3