]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix permission problem in Tramp's copy-file
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 21 Dec 2020 15:37:29 +0000 (16:37 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 21 Dec 2020 15:37:29 +0000 (16:37 +0100)
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-directly):
Take care of PRESERVE-UID-GID.

lisp/net/tramp-sh.el

index e6e718ebe3b57bb1fe50bef358e8f83bafd072c6..0dbcb835363a6797d0d70fee378f52a4a08c6bab 100644 (file)
@@ -2234,7 +2234,7 @@ the uid and gid from FILENAME."
                     (file-writable-p (concat prefix localname2))))
            (tramp-do-copy-or-rename-file-directly
             op (concat prefix localname1) (concat prefix localname2)
-            ok-if-already-exists keep-date t)
+            ok-if-already-exists keep-date preserve-uid-gid)
            ;; We must change the ownership to the local user.
            (tramp-set-file-uid-gid
             (concat prefix localname2)