]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug in Tramp multi-hop
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 4 Jan 2023 17:12:02 +0000 (18:12 +0100)
committerMichael 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

index 61a606c33835168c28fbb7c8d7e18d5c81f7f948..f0b17ef39349af1833036d2184314d7d537e7e0d 100644 (file)
@@ -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)