From 2d19dbdd522feec8dde5c3339357b32f040a29dd Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Mon, 21 Dec 2020 16:37:29 +0100 Subject: [PATCH] Fix permission problem in Tramp's copy-file * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-directly): Take care of PRESERVE-UID-GID. --- lisp/net/tramp-sh.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index e6e718ebe3b..0dbcb835363 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -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) -- 2.39.5