mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
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.
This commit is contained in:
parent
faf3613cba
commit
2d19dbdd52
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue