projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faf3613
)
Fix permission problem in Tramp's copy-file
author
Michael Albinus
<michael.albinus@gmx.de>
Mon, 21 Dec 2020 15:37:29 +0000
(16:37 +0100)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/lisp/net/tramp-sh.el
b/lisp/net/tramp-sh.el
index e6e718ebe3b57bb1fe50bef358e8f83bafd072c6..0dbcb835363a6797d0d70fee378f52a4a08c6bab 100644
(file)
--- 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)