[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 c18878ee0a 2/2: Fix bug in Tramp multi-hop
From: |
Michael Albinus |
Subject: |
emacs-29 c18878ee0a 2/2: Fix bug in Tramp multi-hop |
Date: |
Wed, 4 Jan 2023 12:12:14 -0500 (EST) |
branch: emacs-29
commit c18878ee0a2e16d294bb1b55d233469c604a83ea
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>
Fix bug in Tramp multi-hop
* lisp/net/tramp.el (tramp-compute-multi-hops): Make check for
host name more robust. (Bug#60499)
---
lisp/net/tramp.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 61a606c338..f0b17ef393 100644
--- 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)