Fix stale cache in Tramp (don't merge)
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-directly): Flush cache in time.
This commit is contained in:
parent
600b90ed56
commit
a82486e5a4
1 changed files with 5 additions and 0 deletions
|
@ -2338,6 +2338,11 @@ the uid and gid from FILENAME."
|
|||
;; Save exit.
|
||||
(ignore-errors (delete-file tmpfile)))))))))
|
||||
|
||||
;; When newname did exist, we have wrong cached values.
|
||||
(when t2
|
||||
(with-parsed-tramp-file-name newname v2
|
||||
(tramp-flush-file-properties v2 v2-localname)))
|
||||
|
||||
;; Set the time and mode. Mask possible errors.
|
||||
(ignore-errors
|
||||
(when keep-date
|
||||
|
|
Loading…
Add table
Reference in a new issue