changeset 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 23b69c963c1d
children 0aaf0f10bc11
files lisp/net/tramp.el
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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)))))