projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7eed8e0
)
Fix bug in Tramp multi-hop
author
Michael Albinus
<michael.albinus@gmx.de>
Wed, 4 Jan 2023 17:12:02 +0000
(18:12 +0100)
committer
Michael Albinus
<michael.albinus@gmx.de>
Wed, 4 Jan 2023 17:12:02 +0000
(18:12 +0100)
* lisp/net/tramp.el (tramp-compute-multi-hops): Make check for
host name more robust. (Bug#60499)
lisp/net/tramp.el
patch
|
blob
|
history
diff --git
a/lisp/net/tramp.el
b/lisp/net/tramp.el
index 61a606c33835168c28fbb7c8d7e18d5c81f7f948..f0b17ef39349af1833036d2184314d7d537e7e0d 100644
(file)
--- a/
lisp/net/tramp.el
+++ b/
lisp/net/tramp.el
@@
-4694,7
+4694,8
@@
Do not set it manually, it is used buffer-local in `tramp-get-lock-pid'.")
(or
;; The host name is used for the remote shell command.
(member
- '("%h") (tramp-get-method-parameter item 'tramp-login-args))
+ "%h" (tramp-compat-flatten-tree
+ (tramp-get-method-parameter item 'tramp-login-args)))
;; The host name must match previous hop.
(string-match-p previous-host host))
(setq tramp-default-proxies-alist saved-tdpa)