mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 02:51:31 -08:00
Add test for Bug#27009 in tramp-tests.el
* lisp/net/tramp-sh.el (tramp-compute-multi-hops): Check `tramp-file-name-real-host' for being a local host. * lisp/net/tramp.el (tramp-postfix-host-regexp): Fix docstring. * test/lisp/net/tramp-tests.el (tramp-test-temporary-file-directory): Declare default host for mock method. (tramp-test29-environment-variables-and-port-numbers): New test.
This commit is contained in:
parent
ad2f52a143
commit
107e60f49d
3 changed files with 45 additions and 2 deletions
|
|
@ -837,7 +837,7 @@ Used in `tramp-make-tramp-file-name'."
|
|||
|
||||
(defun tramp-postfix-host-regexp ()
|
||||
"Regexp matching delimiter between host names and localnames.
|
||||
nDerived from `tramp-postfix-host-format'."
|
||||
Derived from `tramp-postfix-host-format'."
|
||||
(regexp-quote (tramp-postfix-host-format)))
|
||||
|
||||
(defconst tramp-localname-regexp ".*$"
|
||||
|
|
@ -4396,6 +4396,8 @@ Only works for Bourne-like shells."
|
|||
;; * Use also port to distinguish connections. This is needed for
|
||||
;; different hosts sitting behind a single router (distinguished by
|
||||
;; different port numbers). (Tzvi Edelman)
|
||||
;; Also needed for different systems serve SSH on different ports of
|
||||
;; the same IP address. (Bug#27009)
|
||||
;;
|
||||
;; * Refactor code from different handlers. Start with
|
||||
;; *-process-file. One idea is to generalize `tramp-send-command'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue