From: Michael Albinus Date: Mon, 29 Jun 2009 20:41:17 +0000 (+0000) Subject: * net/tramp.el (tramp-do-copy-or-rename-file-directly): Set file X-Git-Tag: emacs-pretest-23.1.90~2390 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1f107aed49575d53986de016a20853f67abaa0d0;p=emacs.git * net/tramp.el (tramp-do-copy-or-rename-file-directly): Set file modes mandatory. (Bug#3712) --- 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)))))