[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) |
npostavs@users.sourceforge.net writes:
Hi Noam,
>> This fixes the problem for local file names, but not for remote
>> ones. "/ssh:user@host:/path/~/file" would still be expanded to something
>> like "/ssh:user@host:/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:user@host:/:/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.
- bug#16984: dired-do-rename susceptible to .../~/... hijack,
Michael Albinus <=
- bug#16984: dired-do-rename susceptible to .../~/... hijack, npostavs, 2016/12/07
- bug#16984: dired-do-rename susceptible to .../~/... hijack, Michael Albinus, 2016/12/08
- bug#16984: dired-do-rename susceptible to .../~/... hijack, Eli Zaretskii, 2016/12/08
- bug#16984: dired-do-rename susceptible to .../~/... hijack, npostavs, 2016/12/08
- bug#16984: dired-do-rename susceptible to .../~/... hijack, Michael Albinus, 2016/12/09
- bug#16984: dired-do-rename susceptible to .../~/... hijack, npostavs, 2016/12/11
- bug#16984: dired-do-rename susceptible to .../~/... hijack, Eli Zaretskii, 2016/12/09