]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug#49699
authorAlex Bochannek <alex@bochannek.com>
Fri, 23 Jul 2021 18:29:59 +0000 (20:29 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 23 Jul 2021 18:29:59 +0000 (20:29 +0200)
* lisp/net/tramp-sh.el (tramp-scp-strict-file-name-checking):
Adapt check for macOS.  (Bug#49699)

lisp/net/tramp-sh.el

index 8b4c78fe65bab88031abb1bf9d148ec63673fa32..f94508303df1e8937d4ed346107d769cb3d9ecc0 100644 (file)
@@ -4782,7 +4782,9 @@ Goes through the list `tramp-inline-compress-commands'."
              (with-temp-buffer
                (tramp-call-process vec "scp" nil t nil "-T")
                (goto-char (point-min))
-               (unless (search-forward-regexp "unknown option -- T" nil t)
+               (unless
+                    (search-forward-regexp
+                     "\\(illegal\\|unknown\\) option -- T" nil t)
                  (setq tramp-scp-strict-file-name-checking "-T")))))))
       tramp-scp-strict-file-name-checking)))