* lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options): Adapt test.

This commit is contained in:
Michael Albinus 2022-02-25 10:11:40 +01:00
parent 5c77aed2d6
commit ded89ed3fa

View file

@ -4759,7 +4759,7 @@ Goes through the list `tramp-inline-compress-commands'."
(with-temp-buffer
(tramp-call-process vec "ssh" nil t nil "-o" "ControlMaster")
(goto-char (point-min))
(when (search-forward-regexp "missing.+argument" nil t)
(when (search-forward-regexp "\\(missing\\|no\\).+argument" nil t)
(setq tramp-ssh-controlmaster-options
"-o ControlMaster=auto")))
(unless (zerop (length tramp-ssh-controlmaster-options))