]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug#60060 in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 15 Dec 2022 15:37:16 +0000 (16:37 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 15 Dec 2022 15:37:16 +0000 (16:37 +0100)
* lisp/net/tramp-sh.el (tramp-sh-handle-file-local-copy):
Delete `tmpfile' in case of error.  (Bug#60060)

lisp/net/tramp-sh.el

index df5800f4e9d2c8e8d9b035338cbfa6b299ccf09c..6087f16431e643bc4d09cf7d258b5391b6c38ece 100644 (file)
@@ -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