Commit 1f107aed authored by Michael Albinus's avatar Michael Albinus
Browse files

* net/tramp.el (tramp-do-copy-or-rename-file-directly): Set file

modes mandatory.  (Bug#3712)
parent 2b78d42c
......@@ -3362,9 +3362,8 @@ the uid and gid from FILENAME."
;; 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)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment