From bb27be36ddfd753a8f78e638f23cc782c7b2c3de Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Thu, 15 Dec 2022 16:37:16 +0100 Subject: [PATCH] Fix bug#60060 in Tramp * lisp/net/tramp-sh.el (tramp-sh-handle-file-local-copy): Delete `tmpfile' in case of error. (Bug#60060) --- lisp/net/tramp-sh.el | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.2