From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jeronimo Pellegrini Newsgroups: gmane.emacs.bugs Subject: bug#35639: 27.0.50; tramp fails to use ssh on LibreCMC (no base64 encoder available, and not mentioned in tramp manual) Date: Wed, 08 May 2019 13:25:19 -0300 Message-ID: <87d0ksrk0g.fsf@mitra.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="93975"; mail-complaints-to="usenet@blaine.gmane.org" To: 35639@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 08 18:39:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOPb6-000OKi-Vz for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 May 2019 18:39:13 +0200 Original-Received: from localhost ([127.0.0.1]:40217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOPb6-0003lg-2M for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 May 2019 12:39:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOPaz-0003lP-LN for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 12:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOPay-0002Pb-Bu for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 12:39:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48579) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOPay-0002PT-49 for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 12:39:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hOPaw-0005sV-Bk for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 12:39:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jeronimo Pellegrini Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 May 2019 16:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35639 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155733348222503 (code B ref -1); Wed, 08 May 2019 16:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 May 2019 16:38:02 +0000 Original-Received: from localhost ([127.0.0.1]:33889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOPZy-0005qs-AO for submit@debbugs.gnu.org; Wed, 08 May 2019 12:38:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42331) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOPYj-0005oD-8v for submit@debbugs.gnu.org; Wed, 08 May 2019 12:36:46 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:55502) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hOPYe-0001ej-4p for submit@debbugs.gnu.org; Wed, 08 May 2019 12:36:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOPYc-00032s-Lw for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 12:36:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOPYa-0001c7-CP for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 12:36:38 -0400 Original-Received: from mail.aleph0.info ([66.228.54.186]:48920 helo=aleph0.info) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hOPYZ-0008RN-VR for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 12:36:36 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by aleph0.info (Postfix) with ESMTP id 79A874238A for ; Wed, 8 May 2019 13:25:21 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aleph0.info; s=mail; t=1557332721; bh=uwy0PGDyy8AvM0cASmAFpiYgAuD9XLI0a+G5MXB2rYA=; h=From:To:Subject:Date:From; b=tVUFDIjxzP8ZbbT3qV7Vb63xHb9OXNojbGHxOC+KlxtiUG5ZgpRe/TecYhMm95X9S USxPUc2bWtit8hNComnfO9TagMXpIYDCnkUwsZN0jkYBKLV5Q7b4abjlkik9u6bTos e8mcCTWZ4do7tymS35WLiU1U+/EZBrk7IbBcl43gl7oGlplEb5kh23Ox64vMvlvgiV SLcxXFFrj27cg92uarv4c2VMHLhyf4e9ESFyAiFvxb2DPCS66NfFNcnVUc6lyfZ3lM oNdr1IwKhiEp8o/1RNBrwT1NeYWJTD0KmMDeVxPpeM/NJ46vxIGpHUYCh+o2EmxrXA 3HqRoBcEtAY6w== Original-Received: from aleph0.info ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id YK3wVCuzxQtB for ; Wed, 8 May 2019 13:25:21 -0300 (-03) Original-Received: from mitra.ufabc.edu.br (unknown [177.104.48.1]) (Authenticated sender: je) by aleph0.info (Postfix) with ESMTPSA id 0E66842376 for ; Wed, 8 May 2019 13:25:21 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aleph0.info; s=mail; t=1557332721; bh=uwy0PGDyy8AvM0cASmAFpiYgAuD9XLI0a+G5MXB2rYA=; h=From:To:Subject:Date:From; b=tVUFDIjxzP8ZbbT3qV7Vb63xHb9OXNojbGHxOC+KlxtiUG5ZgpRe/TecYhMm95X9S USxPUc2bWtit8hNComnfO9TagMXpIYDCnkUwsZN0jkYBKLV5Q7b4abjlkik9u6bTos e8mcCTWZ4do7tymS35WLiU1U+/EZBrk7IbBcl43gl7oGlplEb5kh23Ox64vMvlvgiV SLcxXFFrj27cg92uarv4c2VMHLhyf4e9ESFyAiFvxb2DPCS66NfFNcnVUc6lyfZ3lM oNdr1IwKhiEp8o/1RNBrwT1NeYWJTD0KmMDeVxPpeM/NJ46vxIGpHUYCh+o2EmxrXA 3HqRoBcEtAY6w== Original-Received: by mitra.ufabc.edu.br (Postfix, from userid 1000) id 2F2BC5D0; Wed, 8 May 2019 13:25:19 -0300 (-03) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Wed, 08 May 2019 12:38:00 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:158949 Archived-At: Hello. I believe I have found a bug in either tramp.texi or tramp-sh.el. How to reproduce: [1] set up a vanilla installation of LibreCMC (or OpenWRT, I've reproduced this on both) on a wireless router. Suppose it's IP it's 192.168.1.1. [2] ssh into the router as root and create a file, cat > test whatever ^D [3] from another machine, fire up emacs, emacs -Q [4] try to use tramp to access the file using ssh: C-x X-f /ssh:root@192.168.1.1:/root/test (or using the IP address, or host name, of the router, whatever it is) Emacs will respond with an error, complaining about a "wrong method". This is because line 3174 of rtamp.el was reached. It is the default case of a COND expression that has other two cases: - (or (tramp-local-host-p v) (tramp-method-out-of-band-p v size)) - (rem-enc ...) The rem-enc function should use a base64 encoding program on the router (but LibreCMC and OpenWRT do not have it!). If, on the router, I install base64: # opkg install coreutils-base64 then tramp succeeds. So, I believe this should be mentioned in the manual (in the info node Configuration -> Remote Programs there is a list of required programs, but neither uuencode nor base64 are mentioned) I'm willing to send a patch to the manual - however: reading lisp/net/tramp-sh.el I get the impression that tramp actually *should* be able to encode/decode using busybox/awk, which *is* available in LibreCMC (or did I get it wrong?). So, I'm not sure if this is a tramp bug (can't use awk to encode/decode files in base64 format) or bug in its manual (doesn't mention that a base64 binary is needed on the remote side). Thank you! J. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-05-08 built on mitra Repository revision: 8b789755b45e6e10ed2809d7a7b89146b28452fc Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12003000 System Description: Debian GNU/Linux buster/sid Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date elec-pair mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 46847 6151) (symbols 48 5968 1) (strings 32 15091 1308) (string-bytes 1 495765) (vectors 16 9664) (vector-slots 8 118994 8860) (floats 8 17 21) (intervals 56 187 0) (buffers 992 13))