From: Michael Albinus Date: Thu, 15 Dec 2022 15:37:16 +0000 (+0100) Subject: Fix bug#60060 in Tramp X-Git-Tag: emacs-29.0.90~1157 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bb27be36ddf;p=emacs.git Fix bug#60060 in Tramp * lisp/net/tramp-sh.el (tramp-sh-handle-file-local-copy): Delete `tmpfile' in case of error. (Bug#60060) --- diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index df5800f4e9d..6087f16431e 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -3431,6 +3431,7 @@ implementation will be used." (signal (car err) (cdr err))))) ;; Impossible to copy. Trigger `file-missing' error. + (delete-file tmpfile) (setq tmpfile nil)))) (defun tramp-sh-handle-write-region