aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2023-05-24 20:52:25 +0200
committerMichael Albinus2023-05-24 20:52:25 +0200
commite3987d7e1a1993eb5ff0ac10b2cffcb92dd2a00c (patch)
treef6d76c6dec62a8517cd30269558da74992c88a4c
parentb2b2be98da5825e6bc130999ffe38f5ed615586a (diff)
downloademacs-e3987d7e1a1993eb5ff0ac10b2cffcb92dd2a00c.tar.gz
emacs-e3987d7e1a1993eb5ff0ac10b2cffcb92dd2a00c.zip
Use `small-temporary-file-directory' in Tramp
* lisp/net/tramp-fuse.el (tramp-fuse-mount-point): * lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options): Use `small-temporary-file-directory'.
-rw-r--r--lisp/net/tramp-fuse.el3
-rw-r--r--lisp/net/tramp-sh.el7
2 files changed, 7 insertions, 3 deletions
diff --git a/lisp/net/tramp-fuse.el b/lisp/net/tramp-fuse.el
index 5c0bb8e8d96..8626610211a 100644
--- a/lisp/net/tramp-fuse.el
+++ b/lisp/net/tramp-fuse.el
@@ -149,7 +149,8 @@
149 (when (tramp-file-name-user vec) 149 (when (tramp-file-name-user vec)
150 (concat (tramp-file-name-user-domain vec) "@")) 150 (concat (tramp-file-name-user-domain vec) "@"))
151 (tramp-file-name-host-port vec)) 151 (tramp-file-name-host-port vec))
152 tramp-compat-temporary-file-directory))) 152 (or small-temporary-file-directory
153 tramp-compat-temporary-file-directory))))
153 154
154(defconst tramp-fuse-mount-timeout 155(defconst tramp-fuse-mount-timeout
155 (eval (car (get 'remote-file-name-inhibit-cache 'standard-value)) t) 156 (eval (car (get 'remote-file-name-inhibit-cache 'standard-value)) t)
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 0b3ce07d275..25a26d67d6d 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -4867,8 +4867,11 @@ Goes through the list `tramp-inline-compress-commands'."
4867 (if (eq tramp-use-connection-share 'suppress) 4867 (if (eq tramp-use-connection-share 'suppress)
4868 "none" 4868 "none"
4869 ;; Hashed tokens are introduced in OpenSSH 6.7. 4869 ;; Hashed tokens are introduced in OpenSSH 6.7.
4870 (if (tramp-ssh-option-exists-p vec "ControlPath=tramp.%C") 4870 (expand-file-name
4871 "tramp.%%C" "tramp.%%r@%%h:%%p")) 4871 (if (tramp-ssh-option-exists-p vec "ControlPath=tramp.%C")
4872 "tramp.%%C" "tramp.%%r@%%h:%%p")
4873 (or small-temporary-file-directory
4874 tramp-compat-temporary-file-directory)))
4872 4875
4873 ;; ControlPersist option is introduced in OpenSSH 5.6. 4876 ;; ControlPersist option is introduced in OpenSSH 5.6.
4874 (when (and (not (eq tramp-use-connection-share 'suppress)) 4877 (when (and (not (eq tramp-use-connection-share 'suppress))