emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 2d19dbd: Fix permission problem in Tramp's copy-file


From: Michael Albinus
Subject: master 2d19dbd: Fix permission problem in Tramp's copy-file
Date: Mon, 21 Dec 2020 10:37:36 -0500 (EST)

branch: master
commit 2d19dbdd522feec8dde5c3339357b32f040a29dd
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    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 e6e718e..0dbcb83 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]