diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/net/tramp.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 7f207070af3..be41858a7b1 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -3362,9 +3362,8 @@ the uid and gid from FILENAME." (error))))))))) ;; Set the time and mode. Mask possible errors. - ;; Won't be applied for 'rename. (condition-case nil - (when (and keep-date (not preserve-uid-gid)) + (when keep-date (set-file-times newname (nth 5 (file-attributes filename))) (set-file-modes newname (tramp-default-file-modes filename))) (error))))) |
