bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13390: tramp-adb hanging forever


From: Thierry Volpiatto
Subject: bug#13390: tramp-adb hanging forever
Date: Mon, 18 Feb 2013 17:42:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hi Michael,

Michael Albinus <michael.albinus@gmx.de> 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 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]