Commit 97a1a46f authored by Andrew Innes's avatar Andrew Innes
Browse files

(untranslated-canonical-name): Avoid expanding

ange-ftp file names, which might force ange-ftp to prompt for a
parent 0fe2a56d
......@@ -208,7 +208,10 @@ dealing with untranslated filesystems."
filename nil))
;; Use expand-file-name to canonicalize directory separators, except
;; with bare drive letters (which would have the cwd appended).
(if (string-match "^.:$" name)
;; Avoid expanding names that could trigger ange-ftp to prompt
;; for passwords, though.
(if (or (string-match "^.:$" name)
(string-match "^/[^/:]+:" name))
(expand-file-name name)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment