From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#57044: 29.0.50; tramp-error: Reading directory: Permission denied, /scp:motorolausb:/storage/emulated/0/ Date: Tue, 16 Aug 2022 11:46:30 +0300 Message-ID: References: <86czdb3lg4.fsf@protected.rcdrun.com> <87edxrkt8d.fsf@gmx.de> <87v8qxg1o8.fsf@gmx.de> <87h72gfpgd.fsf@gmx.de> <87k07aj29b.fsf@gmx.de> <87lerpu2ki.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29809"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/+ () (2022-06-11) Cc: 57044@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 16 12:10:44 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oNtX2-0007Zz-Eo for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 12:10:44 +0200 Original-Received: from localhost ([::1]:53786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNtX1-0001YC-A3 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 06:10:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNtSU-0003GB-DC for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 06:06:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55166) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNtSU-0002ns-4C for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 06:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNtST-0001kB-Oc for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 06:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Aug 2022 10:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57044 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57044-submit@debbugs.gnu.org id=B57044.16606443516663 (code B ref 57044); Tue, 16 Aug 2022 10:06:01 +0000 Original-Received: (at 57044) by debbugs.gnu.org; 16 Aug 2022 10:05:51 +0000 Original-Received: from localhost ([127.0.0.1]:44910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNtSI-0001jP-Uj for submit@debbugs.gnu.org; Tue, 16 Aug 2022 06:05:51 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:50369) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNtSH-0001iu-75 for 57044@debbugs.gnu.org; Tue, 16 Aug 2022 06:05:49 -0400 Original-Received: from localhost ([::ffff:197.239.6.199]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000B5B20.0000000062FB6BFB.00006547; Tue, 16 Aug 2022 03:05:47 -0700 Content-Disposition: inline In-Reply-To: <87lerpu2ki.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:239884 Archived-At: * Michael Albinus [2022-08-15 15:14]: > This the problem, indeed. tramp-remote-path uses directories like > "/usr/bin". But in Termux, there is a prefix, and the directory is > "/data/data/com.termux/files/usr/bin". So we must add this prefix to all > file names in tramp-remote-path. I've fixed this by declaring > tramp-remote-path as connection-local variable. After calling "emacs -Q > -l tramp", all what I needed was > > --8<---------------cut here---------------start------------->8--- > (setq tramp-connection-properties > '(("/ssh:Samsung-SM-G920F-Michael-Albinus:" "tmpdir" "~/tmp")) I have git pulled latest Emacs and built it. Repository revision: b87400c78b047d242ae188c46c621e0e8a8e69b2 Repository branch: master tramp-connection-properties ⇒ (("ssh:motorola" "tmpdir" /storage/emulated/0/tmp) ("scp:motorola" "tmpdir" /storage/emulated/0/tmp)) I have only added today the scp version, but it always worked in past. > (connection-local-set-profile-variables > 'tramp-connection-local-termux-profile > `((tramp-remote-path > . ,(mapcar > (lambda (x) > (if (stringp x) (concat "/data/data/com.termux/files" x) x)) > (copy-tree tramp-remote-path))))) OK now I evaluate this one, though I do not understand it: (connection-local-set-profile-variables 'tramp-connection-local-termux-profile `((tramp-remote-path . ,(mapcar (lambda (x) (if (stringp x) (concat "/data/data/com.termux/files" x) x)) (copy-tree tramp-remote-path))))) > (connection-local-set-profiles > '(:application tramp :machine "Samsung-SM-G920F-Michael-Albinus") > 'tramp-connection-local-termux-profile) (connection-local-set-profiles '(:application tramp :machine "scp:motorola") 'tramp-connection-local-termux-profile) I have tried above, I have tried with :machine "motorolausb" and I get: File error: Couldn't find a proper `ls' command tramp-error: Couldn't find a proper `ls' command -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/