From 1f107aed49575d53986de016a20853f67abaa0d0 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Mon, 29 Jun 2009 20:41:17 +0000 Subject: [PATCH] * net/tramp.el (tramp-do-copy-or-rename-file-directly): Set file modes mandatory. (Bug#3712) --- lisp/net/tramp.el | 3 +-- 1 file changed, 1 insertion(+), 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))))) -- 2.39.2