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

From: Michael Albinus <[email-masked]>
Date: Thu, 08 Dec 2016 09:23:01 +0100

[email-masked] writes:

Hi Noam,

>> 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.
>
> Something like this?
> +      (if (file-remote-p filename)
> +          (tramp-quote-name filename)
> +        (concat "/:" filename))

`tramp-quote-name' works for both local and remote file names, so you
could remove the test `(file-remote-p filename)'.

As said in the other mail, it shall be made available as
`file-name-quote', therefore. Eli?

Best regards, Michael.