]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Bug#33141
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 24 Oct 2018 18:56:40 +0000 (20:56 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 24 Oct 2018 18:56:40 +0000 (20:56 +0200)
* lisp/net/tramp.el (tramp-make-tramp-file-name): Avoid check for
empty method with simplified `tramp-syntax'.  (Bug#33141)

lisp/net/tramp-compat.el
lisp/net/tramp.el

index ec8e54509d17883b2f8c4454cdbbeeccdab6c033..15b5a4958c622992c30ff66a0f28ec77bd5a7ca6 100644 (file)
@@ -269,4 +269,7 @@ A nil value for either argument stands for the current time."
 
 ;;; TODO:
 
+;; * When we get rid of Emacs 24, replace "(mapconcat 'identity" by
+;;   "(string-join".
+
 ;;; tramp-compat.el ends here
index 2e6cdf999a5eea927b007c1bb5f1a99f123385e0..a1246659d8d6ae784ebc79f3c33308f324e9c264 100644 (file)
@@ -1439,7 +1439,9 @@ the form (METHOD USER DOMAIN HOST PORT LOCALNAME &optional HOP)."
              localname (nth 5 args)
              hop (nth 6 args))))
 
-    (when (zerop (length method))
+    ;; Unless `tramp-syntax' is `simplified', we need a method.
+    (when (and (not (zerop (length tramp-postfix-method-format)))
+              (zerop (length method)))
       (signal 'wrong-type-argument (list 'stringp method)))
     (concat tramp-prefix-format hop
            (unless (zerop (length tramp-postfix-method-format))