aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2017-06-07 16:24:31 +0200
committerMichael Albinus2017-06-07 16:24:31 +0200
commita9327a0afc23d00636b2c3b0ef767de34882bc87 (patch)
tree0677f22559c47e994bd3f219c7a08cc869ebcfaf
parent62523863780d3894c92f84dd474278eeddc4a0e0 (diff)
downloademacs-a9327a0afc23d00636b2c3b0ef767de34882bc87.tar.gz
emacs-a9327a0afc23d00636b2c3b0ef767de34882bc87.zip
* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Fix port handling.
-rw-r--r--lisp/net/tramp-sh.el8
1 files changed, 1 insertions, 7 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 70481ab13bf..b2d70fe11ca 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -4720,7 +4720,7 @@ connection if a previous connection has died for some reason."
4720 (l-method (tramp-file-name-method hop)) 4720 (l-method (tramp-file-name-method hop))
4721 (l-user (tramp-file-name-user hop)) 4721 (l-user (tramp-file-name-user hop))
4722 (l-host (tramp-file-name-host hop)) 4722 (l-host (tramp-file-name-host hop))
4723 (l-port nil) 4723 (l-port (tramp-file-name-port hop))
4724 (login-program 4724 (login-program
4725 (tramp-get-method-parameter hop 'tramp-login-program)) 4725 (tramp-get-method-parameter hop 'tramp-login-program))
4726 (login-args 4726 (login-args
@@ -4755,12 +4755,6 @@ connection if a previous connection has died for some reason."
4755 (when (and process-name async-args) 4755 (when (and process-name async-args)
4756 (setq login-args (append async-args login-args))) 4756 (setq login-args (append async-args login-args)))
4757 4757
4758 ;; Check for port number. Until now, there's no
4759 ;; need for handling like method, user, host.
4760 (when (string-match tramp-host-with-port-regexp l-host)
4761 (setq l-port (match-string 2 l-host)
4762 l-host (match-string 1 l-host)))
4763
4764 ;; Check, whether there is a restricted shell. 4758 ;; Check, whether there is a restricted shell.
4765 (dolist (elt tramp-restricted-shell-hosts-alist) 4759 (dolist (elt tramp-restricted-shell-hosts-alist)
4766 (when (string-match elt tramp-current-host) 4760 (when (string-match elt tramp-current-host)