aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2024-02-01 17:17:36 +0100
committerMichael Albinus2024-02-01 17:17:36 +0100
commitcaecbf3e8db57d93715b8d20587b2ed54064cadb (patch)
treee9f0c1bcf89065b58732c4a85e0f23980143e4fa
parent5f3b46c61e23786295e8e532f7eadeee8cd4340b (diff)
downloademacs-caecbf3e8db57d93715b8d20587b2ed54064cadb.tar.gz
emacs-caecbf3e8db57d93715b8d20587b2ed54064cadb.zip
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)
-rw-r--r--lisp/net/tramp-sh.el6
1 files changed, 6 insertions, 0 deletions
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."
2521 ;; cached password). 2521 ;; cached password).
2522 (tramp-cleanup-connection v 'keep-debug 'keep-password)))) 2522 (tramp-cleanup-connection v 'keep-debug 'keep-password))))
2523 2523
2524 ;; The cached file properties might be wrong if NEWNAME didn't
2525 ;; exist. Flush them.
2526 (when v2
2527 (with-parsed-tramp-file-name newname v2
2528 (tramp-flush-file-properties v2 v2-localname)))
2529
2524 ;; Handle KEEP-DATE argument. 2530 ;; Handle KEEP-DATE argument.
2525 (when (and keep-date (not copy-keep-date)) 2531 (when (and keep-date (not copy-keep-date))
2526 (tramp-compat-set-file-times 2532 (tramp-compat-set-file-times