all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: emacs-devel@gnu.org
Subject: Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu'
Date: Sun, 03 Mar 2024 20:09:13 +0800	[thread overview]
Message-ID: <87a5nf34ba.fsf@yahoo.com> (raw)
In-Reply-To: <877cijhbxy.fsf@gmx.de> (Michael Albinus's message of "Sun, 03 Mar 2024 11:00:41 +0100")

Michael Albinus <michael.albinus@gmx.de> writes:

> -(defconst tramp-androidsu-method "androidsu"
> +(defconst tramp-androidsu-method "su"
>    "When this method name is used, forward all calls to su.")
>
>  ;;;###tramp-autoload
> @@ -66,10 +66,7 @@ tramp-androidsu-su-mm-supported
>                  (tramp-remote-shell-login   ("-l"))
>                  (tramp-remote-shell-args    ("-c"))
>                  (tramp-tmpdir               "/data/local/tmp")
> -                (tramp-connection-timeout   10)))
> -
> - (add-to-list 'tramp-default-host-alist
> -              `(,tramp-androidsu-method nil "localhost")))
> +                (tramp-connection-timeout   10))))
>
>  (defvar android-use-exec-loader) ; androidfns.c.
>
> @@ -645,7 +642,8 @@ tramp-androidsu-file-name-handler-alist
>  (defsubst tramp-androidsu-file-name-p (vec-or-filename)
>    "Check whether VEC-OR-FILENAME is for the `androidsu' method."
>    (when-let* ((vec (tramp-ensure-dissected-file-name vec-or-filename)))
> -    (equal (tramp-file-name-method vec) tramp-androidsu-method)))
> +    (and (eq system-type 'android)
> +         (equal (tramp-file-name-method vec) tramp-androidsu-method))))
>
>  ;;;###tramp-autoload
>  (defun tramp-androidsu-file-name-handler (operation &rest args)

I've yet to test this patch, but nevertheless won't it override the
default file name handlers even in multi-hop connections, where su will
definitely not be executed under Android?



  parent reply	other threads:[~2024-03-03 12:09 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <170892805989.23297.10872025500935567738@vcs2.savannah.gnu.org>
     [not found] ` <20240226061420.EF1D4C00231@vcs2.savannah.gnu.org>
2024-02-26  8:51   ` master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu' Michael Albinus
2024-02-26  9:02     ` Po Lu
2024-02-26  9:19       ` Michael Albinus
2024-02-26 10:54         ` Po Lu
2024-02-28 15:38           ` Michael Albinus
2024-03-02 14:53           ` Michael Albinus
2024-03-03  3:10             ` Po Lu
2024-03-03 10:00               ` Michael Albinus
2024-03-03 11:03                 ` Po Lu
2024-03-03 11:31                   ` Michael Albinus
2024-03-03 12:09                 ` Po Lu [this message]
2024-03-03 12:17                   ` Michael Albinus
2024-03-03 12:35                     ` Po Lu
2024-03-03 12:50                       ` Michael Albinus
2024-03-04  3:29                         ` Po Lu
2024-03-04 14:47                           ` Michael Albinus
2024-03-03 11:30               ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a5nf34ba.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=emacs-devel@gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.