mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-06 22:12:30 -08:00
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)
This commit is contained in:
parent
5f3b46c61e
commit
caecbf3e8d
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue