1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 16:51:06 -07:00

Fix androidsu's `make-process' file name handler

* lisp/net/tramp-androidsu.el
(tramp-androidsu-handle-make-process): Disable exec loader
around call to setuid su binary.
This commit is contained in:
Po Lu 2024-04-01 14:04:56 +08:00
parent c4e7eec8c0
commit 9caf5cb55a

View file

@ -366,13 +366,19 @@ FUNCTION."
;; suitable options for specifying the mount namespace and
;; suchlike.
(setq
p (make-process
:name name :buffer buffer
:command (if (tramp-get-connection-property v "remote-namespace")
(append (list "su" "-mm" "-" user "-c") command)
(append (list "su" "-" user "-c") command))
:coding coding :noquery noquery :connection-type connection-type
:sentinel sentinel :stderr stderr))
p (let ((android-use-exec-loader nil))
(make-process
:name name
:buffer buffer
:command
(if (tramp-get-connection-property v "remote-namespace")
(append (list "su" "-mm" "-" user "-c") command)
(append (list "su" "-" user "-c") command))
:coding coding
:noquery noquery
:connection-type connection-type
:sentinel sentinel
:stderr stderr)))
;; Set filter. Prior Emacs 29.1, it doesn't work reliably
;; to provide it as `make-process' argument when filter is
;; t. See Bug#51177.