From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#13390: tramp-adb hanging forever Date: Mon, 18 Feb 2013 17:42:39 +0100 Organization: Emacs Helm Message-ID: <87sj4tk1z4.fsf@gmail.com> References: <87r4lveebo.fsf@gmail.com> <87lic3cq6c.fsf@gmx.de> <87mwwje3zs.fsf@gmail.com> <87a9sisuhp.fsf@gmx.de> <87y5eo3x6n.fsf@gmx.de> <87bobhnbs5.fsf@gmail.com> <87hal9sx09.fsf@gmx.de> <87d2vxelqj.fsf@gmail.com> <878v6lsn75.fsf@gmx.de> <874nh91xo9.fsf@gmail.com> <874nh9siwg.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361205794 25229 80.91.229.3 (18 Feb 2013 16:43:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2013 16:43:14 +0000 (UTC) Cc: 13390@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 18 17:43:36 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U7ToW-00055I-4K for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Feb 2013 17:43:36 +0100 Original-Received: from localhost ([::1]:45651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7ToC-0006kg-66 for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Feb 2013 11:43:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7To4-0006jw-78 for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 11:43:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7Tny-0003lC-4O for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 11:43:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7Tny-0003l2-12 for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 11:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U7Tov-0007EI-Lx for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 11:44:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Feb 2013 16:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13390 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13390-submit@debbugs.gnu.org id=B13390.136120583227768 (code B ref 13390); Mon, 18 Feb 2013 16:44:01 +0000 Original-Received: (at 13390) by debbugs.gnu.org; 18 Feb 2013 16:43:52 +0000 Original-Received: from localhost ([127.0.0.1]:34945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U7Tom-0007Do-1z for submit@debbugs.gnu.org; Mon, 18 Feb 2013 11:43:52 -0500 Original-Received: from mail-wg0-f42.google.com ([74.125.82.42]:65312) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U7Toj-0007Dh-OU for 13390@debbugs.gnu.org; Mon, 18 Feb 2013 11:43:50 -0500 Original-Received: by mail-wg0-f42.google.com with SMTP id 12so2866249wgh.5 for <13390@debbugs.gnu.org>; Mon, 18 Feb 2013 08:42:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version:content-type; bh=1nhWwqQq8oGFAC0a4y0A1CTpJU4OllMG7wqGKcHPIpE=; b=LJucJupE6mqD2uuLEdhfMR28UsdP/3CfO3YWDYDQa55uXqJwhO88Gca/SRnucAuoCh 0ViPQP5pcr+Fbdn2aGlhpR6zW8XRwLEZq7Y7yx7pEEnVqmEYTxnl+OjjOrP6FZlsx/pr w1IMBLRKHUJwOqZd1QQEYbI2fflWXX5hieW9NuVdvOJRsNx5ogGKB1nK4gGDNBEU3/Ve hpQfSYQgl7fCy6AO8DhTLMlNARr/TZpT8ViQE02xf2yU5tZDJGxveOMzh9CkKJa1qvA6 x+LqYCul+Gq/cLkSuBF6cgrrPUi821u9+wXuwIMMX/Z5pvoU1WmuS/f4/mz7XnLW/+DY jiTw== X-Received: by 10.180.87.98 with SMTP id w2mr19763857wiz.30.1361205768564; Mon, 18 Feb 2013 08:42:48 -0800 (PST) Original-Received: from dell-14z (lbe83-2-78-243-104-167.fbx.proxad.net. [78.243.104.167]) by mx.google.com with ESMTPS id bs6sm22738657wib.4.2013.02.18.08.42.46 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 18 Feb 2013 08:42:47 -0800 (PST) In-Reply-To: <874nh9siwg.fsf@gmx.de> (Michael Albinus's message of "Mon, 18 Feb 2013 17:09:51 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71479 Archived-At: Hi Michael, Michael Albinus writes: > Tramp expects, that "id -g" returns just a number. Your /system/bin/id > behaves differently. > > During my tests I've found that several commands in /system/bin behave > not exactly as expected. Thats why I have recommended to use as shell > just "sh". In the case of SSHDroid this results in a shell which comes > with SSHDroid, and which behaves more regular. > > Maybe you give it a try? Same without specifying the path of "sh": Tramp: Sending command `exec ssh -p 2222 -o ControlPath=/tmp/tramp.2399kbl.%r@%h:%p -o ControlMaster=auto -o ControlPersist=no -e none 192.168.0.24' Tramp: Found remote shell prompt on `192.168.0.24' Tramp: Opening connection for 192.168.0.24#2222 using ssh...done byte-code: `/system/bin/id -g ' does not return a valid Lisp expression: `uid=0(root) gid=0(root) groups=0(root) And when I run "id -g" from a shell connected to device, I have indeed same result: ,---- | thierry@dell-14z:~/tmp/emacs-savanah-git$ ssh zte | Welcome to DropBear SSH Server II! | root@192.168.0.24's password: | -sh-3.2# id -g | uid=0(root) gid=0(root) groups=0(root) `---- But indeed it seem there is different implementation of command "id": ,---- | thierry@dell-14z:~/tmp/emacs-savanah-git$ ssh zte | Welcome to DropBear SSH Server II! | root@192.168.0.24's password: | -sh-3.2# /system/xbin/id -g | 0 | -sh-3.2# /system/bin/id -g | uid=0(root) gid=0(root) groups=0(root) `---- -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997