Commit 7fcdabdc authored by Michael Albinus's avatar Michael Albinus
Browse files

* lisp/net/tramp-sh.el (tramp-set-remote-path): Fix usage of tmpfile.

parent e5ef4c66
Pipeline #581 passed with stage
in 50 minutes and 38 seconds
......@@ -3973,9 +3973,11 @@ variable PATH."
(if (< (length command) pipe-buf)
(tramp-send-command vec command)
;; Use a temporary file.
(setq tmpfile (tramp-make-tramp-temp-file vec))
(setq tmpfile
(tramp-make-tramp-file-name vec (tramp-make-tramp-temp-file vec)))
(write-region command nil tmpfile)
(tramp-send-command vec (format ". %s" tmpfile))
vec (format ". %s" (tramp-compat-file-local-name tmpfile)))
(delete-file tmpfile))))
;; ------------------------------------------------------------
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