diff options
-rw-r--r-- | lisp/net/tramp.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 567701a9b28..723b35c9e7b 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -3585,7 +3585,11 @@ support symbolic links." (setq filename (concat (file-remote-p filename) (replace-regexp-in-string - "\\`/+" "/" (substitute-in-file-name localname))))))) + "\\`/+" "/" + ;; We must disable cygwin-mount file name + ;; handlers and alike. + (tramp-run-real-handler + 'substitute-in-file-name (list localname)))))))) ;; "/m:h:~" does not work for completion. We use "/m:h:~/". (if (and (stringp localname) (string-equal "~" localname)) (concat filename "/") |