]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix commit c24c5dc4a4
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 22 Mar 2018 08:58:56 +0000 (09:58 +0100)
committerAndrew G Cohen <cohen@andy.bu.edu>
Tue, 11 Dec 2018 06:17:57 +0000 (14:17 +0800)
* lisp/net/tramp.el (tramp-handle-substitute-in-file-name): Drop volume
letter of localname substitution.  Reported by Chris Zheng
<chriszheng99@gmail.com>.

lisp/net/tramp.el

index 5930bcdd4fc245a37462c8149189c64adb06fd30..7371d38cbac0b024de74a5776d096129461e5520 100644 (file)
@@ -3564,7 +3564,8 @@ support symbolic links."
              (setq filename (substitute-in-file-name localname))
            (setq filename
                  (concat (file-remote-p filename)
-                         (substitute-in-file-name localname))))))
+                         (tramp-drop-volume-letter
+                          (substitute-in-file-name localname)))))))
       ;; "/m:h:~" does not work for completion.  We use "/m:h:~/".
       (if (and (stringp localname) (string-equal "~" localname))
          (concat filename "/")