Fix Bug#30038

* lisp/net/tramp.el (tramp-make-tramp-file-name): Check, that
method is not empty.  (Bug#30038)
This commit is contained in:
Michael Albinus
2018-01-09 09:46:28 +01:00
parent a0365437c9
commit fd21bf0c41

View File

@@ -1423,9 +1423,10 @@ the form (METHOD USER DOMAIN HOST PORT LOCALNAME &optional HOP)."
localname (nth 5 args)
hop (nth 6 args))))
(when (zerop (length method))
(signal 'wrong-type-argument (list 'stringp method)))
(concat tramp-prefix-format hop
(unless (or (zerop (length method))
(zerop (length tramp-postfix-method-format)))
(unless (zerop (length tramp-postfix-method-format))
(concat method tramp-postfix-method-format))
user
(unless (zerop (length domain))