Fix Bug#33364

* lisp/net/tramp.el (tramp-parse-sconfig-group): Support also
"Host host1 host2 ..." syntax.  (Bug#33364)
This commit is contained in:
Michael Albinus 2018-11-14 16:19:39 +01:00
parent acee0a8f20
commit 3287a7c048

View file

@ -2739,7 +2739,9 @@ User is always nil."
"Return a (user host) tuple allowed to access. "Return a (user host) tuple allowed to access.
User is always nil." User is always nil."
(tramp-parse-group (tramp-parse-group
(concat "^[ \t]*Host[ \t]+" "\\(" tramp-host-regexp "\\)") 1 ",")) (concat "\\(?:^[ \t]*Host\\)" "\\|" "\\(?:^.+\\)"
"\\|" "\\(" tramp-host-regexp "\\)")
1 "[ \t]+"))
;; Generic function. ;; Generic function.
(defun tramp-parse-shostkeys-sknownhosts (dirname regexp) (defun tramp-parse-shostkeys-sknownhosts (dirname regexp)