aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2019-01-21 11:34:32 +0100
committerMichael Albinus2019-01-21 11:34:32 +0100
commit7fcdabdcb03a47ec028a5821f6c3fc054d00b40d (patch)
tree4ae68e3c25350a503febc6f3f9b3747500918dab
parente5ef4c660c191223912b15ebfa3b61a058221992 (diff)
downloademacs-7fcdabdcb03a47ec028a5821f6c3fc054d00b40d.tar.gz
emacs-7fcdabdcb03a47ec028a5821f6c3fc054d00b40d.zip
* lisp/net/tramp-sh.el (tramp-set-remote-path): Fix usage of tmpfile.
-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;; ------------------------------------------------------------