aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/net/tramp-sh.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 4fa8b3fa3f1..dfb4b84517f 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -3973,9 +3973,11 @@ variable PATH."
3973 (if (< (length command) pipe-buf) 3973 (if (< (length command) pipe-buf)
3974 (tramp-send-command vec command) 3974 (tramp-send-command vec command)
3975 ;; Use a temporary file. 3975 ;; Use a temporary file.
3976 (setq tmpfile (tramp-make-tramp-temp-file vec)) 3976 (setq tmpfile
3977 (tramp-make-tramp-file-name vec (tramp-make-tramp-temp-file vec)))
3977 (write-region command nil tmpfile) 3978 (write-region command nil tmpfile)
3978 (tramp-send-command vec (format ". %s" tmpfile)) 3979 (tramp-send-command
3980 vec (format ". %s" (tramp-compat-file-local-name tmpfile)))
3979 (delete-file tmpfile)))) 3981 (delete-file tmpfile))))
3980 3982
3981;; ------------------------------------------------------------ 3983;; ------------------------------------------------------------