Commit a336b2ea authored by Michael Albinus's avatar Michael Albinus
Browse files

Fix Bug#17653.

* net/tramp.el (tramp-ssh-controlmaster-options): Improve search regexp.
parent e7477c9f
2014-06-03 Michael Albinus <>
* net/tramp.el (tramp-ssh-controlmaster-options): Improve search
regexp. (Bug#17653)
2014-06-03 Glenn Morris <>
* emacs-lisp/package.el (package-pinned-packages): Doc fix.
......@@ -302,18 +302,19 @@ useful only in combination with `tramp-default-proxies-alist'.")
(defconst tramp-ssh-controlmaster-options
(let ((result ""))
(let ((result "")
(case-fold-search t))
(call-process "ssh" nil t nil "-o" "ControlMaster")
(goto-char (point-min))
(when (search-forward-regexp "Missing ControlMaster argument" nil t)
(when (search-forward-regexp "missing.+argument" nil t)
(setq result "-o ControlPath=%t.%%r@%%h:%%p -o ControlMaster=auto")))
(when result
(unless (zerop (length result))
(call-process "ssh" nil t nil "-o" "ControlPersist")
(goto-char (point-min))
(when (search-forward-regexp "Missing ControlPersist argument" nil t)
(when (search-forward-regexp "missing.+argument" nil t)
(setq result (concat result " -o ControlPersist=no"))))))
"Call ssh to detect whether it supports the Control* arguments.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment