[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 caecbf3e8db: Fix stale cache in Tramp (do not merge with master
From: |
Michael Albinus |
Subject: |
emacs-29 caecbf3e8db: Fix stale cache in Tramp (do not merge with master) |
Date: |
Thu, 1 Feb 2024 11:17:52 -0500 (EST) |
branch: emacs-29
commit caecbf3e8db57d93715b8d20587b2ed54064cadb
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>
Fix stale cache in Tramp (do not merge with master)
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Flush file properties when needed. (Bug#68805)
---
lisp/net/tramp-sh.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 1301cd633da..44c0bdc7aea 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -2521,6 +2521,12 @@ The method used must be an out-of-band method."
;; cached password).
(tramp-cleanup-connection v 'keep-debug 'keep-password))))
+ ;; The cached file properties might be wrong if NEWNAME didn't
+ ;; exist. Flush them.
+ (when v2
+ (with-parsed-tramp-file-name newname v2
+ (tramp-flush-file-properties v2 v2-localname)))
+
;; Handle KEEP-DATE argument.
(when (and keep-date (not copy-keep-date))
(tramp-compat-set-file-times
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 caecbf3e8db: Fix stale cache in Tramp (do not merge with master),
Michael Albinus <=