]> git.eshelyaron.com Git - emacs.git/commitdiff
Use `small-temporary-file-directory' in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 24 May 2023 18:52:25 +0000 (20:52 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 24 May 2023 18:52:25 +0000 (20:52 +0200)
* lisp/net/tramp-fuse.el (tramp-fuse-mount-point):
* lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options):
Use `small-temporary-file-directory'.

lisp/net/tramp-fuse.el
lisp/net/tramp-sh.el

index 5c0bb8e8d96ed8c4df3a806e79f62a608797297b..8626610211ad55f42c258f19391d6994b548a12a 100644 (file)
        (when (tramp-file-name-user vec)
          (concat (tramp-file-name-user-domain vec) "@"))
        (tramp-file-name-host-port vec))
-       tramp-compat-temporary-file-directory)))
+       (or small-temporary-file-directory
+          tramp-compat-temporary-file-directory))))
 
 (defconst tramp-fuse-mount-timeout
   (eval (car (get 'remote-file-name-inhibit-cache 'standard-value)) t)
index 0b3ce07d275b962e11148dfb2169bf0c77a910dd..25a26d67d6d784c71697ecc123b3b3de3592b2a8 100644 (file)
@@ -4867,8 +4867,11 @@ Goes through the list `tramp-inline-compress-commands'."
          (if (eq tramp-use-connection-share 'suppress)
              "none"
            ;; Hashed tokens are introduced in OpenSSH 6.7.
-          (if (tramp-ssh-option-exists-p vec "ControlPath=tramp.%C")
-              "tramp.%%C" "tramp.%%r@%%h:%%p"))
+          (expand-file-name
+           (if (tramp-ssh-option-exists-p vec "ControlPath=tramp.%C")
+               "tramp.%%C" "tramp.%%r@%%h:%%p")
+           (or small-temporary-file-directory
+               tramp-compat-temporary-file-directory)))
 
          ;; ControlPersist option is introduced in OpenSSH 5.6.
         (when (and (not (eq tramp-use-connection-share 'suppress))