Mercurial > emacs
diff lisp/net/tramp.el @ 103627:2cc306c7ad91
* net/tramp.el (tramp-do-copy-or-rename-file-directly): Set file
modes mandatory. (Bug#3712)
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Mon, 29 Jun 2009 20:41:17 +0000 |
parents | d820807ffab7 |
children | 11f316dfa4b5 |
line wrap: on
line diff
--- a/lisp/net/tramp.el Mon Jun 29 14:44:04 2009 +0000 +++ b/lisp/net/tramp.el Mon Jun 29 20:41:17 2009 +0000 @@ -3362,9 +3362,8 @@ (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)))))