[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16984: dired-do-rename susceptible to .../~/... hijack

From: Michael Albinus
Subject: bug#16984: dired-do-rename susceptible to .../~/... hijack
Date: Sun, 04 Dec 2016 20:06:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

address@hidden writes:

Hi Noam,

>> This fixes the problem for local file names, but not for remote
>> ones. "/ssh:address@hidden:/path/~/file" would still be expanded to something
>> like "/ssh:address@hidden:/home/user/file". Well, better than nothing.
>> What do people think to use the "/:" prefix also for the local part of
>> remote file names? Then one could use "/ssh:address@hidden:/:/path/~/file",
>> making substitute-in-file-name a noop.
> Makes sense to me.

I've added a patch to master which allows quoting the local part of the
file name. Maybe you could rewrite your patch, using this feature.

There are also three new functions tramp-quoted-name-p, tramp-quote-name
and tramp-unquote-name. Maybe it is worth to expose them more generally,
as file-name-quoted-p, file-name-quote and file-name-unquote.

Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]