summaryrefslogtreecommitdiff
path: root/lisp/net
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2024-04-01 14:04:56 +0800
committerPo Lu <luangruo@yahoo.com>2024-04-01 14:05:24 +0800
commit9caf5cb55a3889fea019c73d6a3040204d77bf39 (patch)
tree9510934628479d77774a551c6c7e4a83f3141f25 /lisp/net
parentc4e7eec8c096219ddc6b3a981eef03ce421b8877 (diff)
downloademacs-9caf5cb55a3889fea019c73d6a3040204d77bf39.tar.gz
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.
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/tramp-androidsu.el20
1 files changed, 13 insertions, 7 deletions
diff --git a/lisp/net/tramp-androidsu.el b/lisp/net/tramp-androidsu.el
index 09bee323f5e..1ec9247cf3c 100644
--- a/lisp/net/tramp-androidsu.el
+++ b/lisp/net/tramp-androidsu.el
@@ -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.