[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu'
From: |
Michael Albinus |
Subject: |
Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu' |
Date: |
Sun, 03 Mar 2024 13:50:09 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Po Lu <luangruo@yahoo.com> writes:
Hi,
>> No. In multi-hop connections, every hop is checked via
>> tramp-multi-hop-p. This includes tramp-sh-file-name-handler-p, which
>> returns nil for the tramp-androidsu backend.
>
> That raises a different question: won't such a check disable multi-hop
> connections involving the `su' method from being established to
> non-Android hosts? Is it possible to detect whether VEC appertains to a
> multi-hop connection early, in tramp-androidsh-file-name-handler-p
> itself?
Good question. So perhaps we must improve the check like (untested)
(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)))
(and (eq system-type 'android)
(equal (tramp-file-name-method vec) tramp-androidsu-method)
(null (tramp-file-name-hop vec)))))
Best regards, Michael.
- Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu', Michael Albinus, 2024/03/02
- Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu', Po Lu, 2024/03/02
- Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu', Michael Albinus, 2024/03/03
- Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu', Po Lu, 2024/03/03
- Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu', Michael Albinus, 2024/03/03
- Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu', Po Lu, 2024/03/03
- Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu',
Michael Albinus <=
- Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu', Po Lu, 2024/03/03
- Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu', Michael Albinus, 2024/03/04
Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu', Michael Albinus, 2024/03/03