emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 bb27be36dd 2/3: Fix bug#60060 in Tramp


From: Michael Albinus
Subject: emacs-29 bb27be36dd 2/3: Fix bug#60060 in Tramp
Date: Thu, 15 Dec 2022 10:37:50 -0500 (EST)

branch: emacs-29
commit bb27be36ddfd753a8f78e638f23cc782c7b2c3de
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    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 df5800f4e9..6087f16431 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]