From c18878ee0a2e16d294bb1b55d233469c604a83ea Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Wed, 4 Jan 2023 18:12:02 +0100 Subject: [PATCH] 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 61a606c3383..f0b17ef3934 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) -- 2.39.5