mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-29 07:58:28 +00:00
Fix Tramp on MS Windows
* lisp/net/tramp-sh.el (tramp-sh-handle-expand-file-name): Apply `tramp-drop-volume-letter' consequently.
This commit is contained in:
parent
ea5fd6c96b
commit
34f7a47c9c
@ -2825,7 +2825,8 @@ the result will be a local, non-Tramp, file name."
|
||||
(with-parsed-tramp-file-name name nil
|
||||
;; If connection is not established yet, run the real handler.
|
||||
(if (not (tramp-connectable-p v))
|
||||
(tramp-run-real-handler #'expand-file-name (list name))
|
||||
(tramp-drop-volume-letter
|
||||
(tramp-run-real-handler #'expand-file-name (list name)))
|
||||
(unless (tramp-run-real-handler #'file-name-absolute-p (list localname))
|
||||
(setq localname (concat "~/" localname)))
|
||||
;; Tilde expansion if necessary. This needs a shell which
|
||||
|
Loading…
Reference in New Issue
Block a user