mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Handle root permissions on remote files
* lisp/net/tramp.el (tramp-check-cached-permissions): Check also for remote uid/gid being 0. (Bug#57238) * lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls): Convert numeric uid/gid strings into real strings. (tramp-sh-get-signal-strings): Use `zerop'. * lisp/net/tramp.el (tramp-root-id-string, tramp-root-id-integer): New defconsts. (tramp-handle-find-backup-file-name, tramp-handle-lock-file) (tramp-local-host-p, tramp-handle-make-auto-save-file-name) * lisp/net/tramp-sh.el (tramp-default-method-alist) (ramp-default-user-alist, tramp-find-shell): * lisp/net/tramp-sudoedit.el (tramp-default-user-alist): Use them.
This commit is contained in:
parent
3ea6cb40e6
commit
12c3461b45
3 changed files with 37 additions and 18 deletions
|
|
@ -48,7 +48,8 @@
|
|||
("-p" "Password:") ("--")))
|
||||
(tramp-password-previous-hop t)))
|
||||
|
||||
(add-to-list 'tramp-default-user-alist '("\\`sudoedit\\'" nil "root"))
|
||||
(add-to-list 'tramp-default-user-alist
|
||||
`("\\`sudoedit\\'" nil ,tramp-root-id-string))
|
||||
|
||||
(tramp-set-completion-function
|
||||
tramp-sudoedit-method tramp-completion-function-alist-su))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue