summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2015-02-03 10:32:00 +0100
committerMichael Albinus <michael.albinus@gmx.de>2015-02-03 10:32:00 +0100
commitd6fee01589a0f10b3d761bd9bdf582730c92a171 (patch)
treea9eded95eb0b6797090036f265f061543131cc80
parent27e11c01859e0d60c4c8502421a5d363d0153dfb (diff)
downloademacs-d6fee01589a0f10b3d761bd9bdf582730c92a171.tar.gz
Tramp: Don't use a tempfile for ControlPath.
Fixes: debbugs:19702 * net/tramp.el (tramp-ssh-controlmaster-options): Don't use a tempfile for ControlPath.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp.el5
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8ef533e1aa6..a61c2403dd3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-03 Michael Albinus <michael.albinus@gmx.de>
+
+ * net/tramp.el (tramp-ssh-controlmaster-options): Don't use a
+ tempfile for ControlPath. (Bug#19702)
+
2015-02-02 Michael Albinus <michael.albinus@gmx.de>
* net/tramp.el (tramp-ssh-controlmaster-options): Use "%C" for
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index c442806b90f..b746bca5804 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -323,8 +323,9 @@ useful only in combination with `tramp-default-proxies-alist'.")
"ssh" nil t nil "-o" "ControlPath=%C" "host.does.not.exist")
(goto-char (point-min))
(if (search-forward-regexp "unknown.+key" nil t)
- (setq result (concat result " -o ControlPath=%t.%%r@%%h:%%p"))
- (setq result (concat result " -o ControlPath=%t.%%C"))))
+ (setq result
+ (concat result " -o ControlPath=tramp.%%r@%%h:%%p"))
+ (setq result (concat result " -o ControlPath=tramp.%%C"))))
(with-temp-buffer
(call-process "ssh" nil t nil "-o" "ControlPersist")
(goto-char (point-min))