]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp.el (tramp-do-copy-or-rename-file-directly): Set file
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 29 Jun 2009 20:41:17 +0000 (20:41 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 29 Jun 2009 20:41:17 +0000 (20:41 +0000)
modes mandatory.  (Bug#3712)

lisp/net/tramp.el

index 7f207070af3c4ca62cd3531e5bae239d5b30bb8e..be41858a7b1f5cb48e0b9d2988a2cc8e5b2b55ef 100644 (file)
@@ -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)))))