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: Fri, 10 May 2019 06:49:31 -0300 Message-ID: <20190510094930.GF1697@socrates.lan> References: <20190508230145.GA1697@socrates.lan> <87d0ksw05q.fsf@gmx.de> <20190509101938.GB1697@socrates.lan> <8736lnx27g.fsf@gmx.de> <1A3C3BED-4CEF-41AC-B82F-EBA7AC614E18@aleph0.info> <87pnoru77n.fsf@gmx.de> <20190509195218.GD1697@socrates.lan> <87bm0b2y6t.fsf@gmx.de> <20190509201129.GE1697@socrates.lan> <8736lm3dpb.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="154078"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: 35639@debbugs.gnu.org, Jeronimo Pellegrini To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 10 11:50:18 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 1hP2AU-000dyY-32 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 May 2019 11:50:18 +0200 Original-Received: from localhost ([127.0.0.1]:40179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP2AS-0001dl-ST for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 May 2019 05:50:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP2AF-0001bw-QX for bug-gnu-emacs@gnu.org; Fri, 10 May 2019 05:50:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hP2AE-0005MN-QL for bug-gnu-emacs@gnu.org; Fri, 10 May 2019 05:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51869) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hP2AE-0005MH-Md for bug-gnu-emacs@gnu.org; Fri, 10 May 2019 05:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hP2AE-0002pj-Jh for bug-gnu-emacs@gnu.org; Fri, 10 May 2019 05:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jeronimo Pellegrini Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 May 2019 09:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35639 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 35639-submit@debbugs.gnu.org id=B35639.155748178610852 (code B ref 35639); Fri, 10 May 2019 09:50:02 +0000 Original-Received: (at 35639) by debbugs.gnu.org; 10 May 2019 09:49:46 +0000 Original-Received: from localhost ([127.0.0.1]:37176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP29y-0002ox-I7 for submit@debbugs.gnu.org; Fri, 10 May 2019 05:49:46 -0400 Original-Received: from mail.aleph0.info ([66.228.54.186]:55420 helo=aleph0.info) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP29r-0002oY-PZ for 35639@debbugs.gnu.org; Fri, 10 May 2019 05:49:42 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by aleph0.info (Postfix) with ESMTP id AE27B42393; Fri, 10 May 2019 06:49:33 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aleph0.info; s=mail; t=1557481773; bh=qqjsddUYUJ9lyfDL6MXYZJmU0a+mh+Hb+uam64YSzug=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dfnh+mNt5n2rSpmLJ+QKBUTTkF7fp3R+EtUN/pPBA83CSmb1RWpeL20uRRgMcPC2I LaFy0mcR0evx1WX4FXym1k+b4Rwb58R0St9qjUW2jboKmIzhf194HuY37DyUfIb76h z+N04j148Amugk7heiRVgGLonWFDkzz46Pd6Jhm00YZbiIP7Tie8jCPPzHlFZmxKan R+VYI3OVxsqpZ4mBscF/051Yhf4rFqc2VO2VrtFw5ETXG6g8fDDwn8zkzrb1nH2I+v t+Xn8pZ8HtD2GsFGzIjD59fPpnF5MmbGPMfmLCJycPBtDzqYsN+UZlk9xpUmTTECG1 NjXP1j26DuWoA== Original-Received: from aleph0.info ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bujMsJWUPaii; Fri, 10 May 2019 06:49:33 -0300 (-03) Original-Received: from socrates.aleph0.info (unknown [191.181.133.68]) (Authenticated sender: je) by aleph0.info (Postfix) with ESMTPSA id 5B73842391; Fri, 10 May 2019 06:49:33 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aleph0.info; s=mail; t=1557481773; bh=qqjsddUYUJ9lyfDL6MXYZJmU0a+mh+Hb+uam64YSzug=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dfnh+mNt5n2rSpmLJ+QKBUTTkF7fp3R+EtUN/pPBA83CSmb1RWpeL20uRRgMcPC2I LaFy0mcR0evx1WX4FXym1k+b4Rwb58R0St9qjUW2jboKmIzhf194HuY37DyUfIb76h z+N04j148Amugk7heiRVgGLonWFDkzz46Pd6Jhm00YZbiIP7Tie8jCPPzHlFZmxKan R+VYI3OVxsqpZ4mBscF/051Yhf4rFqc2VO2VrtFw5ETXG6g8fDDwn8zkzrb1nH2I+v t+Xn8pZ8HtD2GsFGzIjD59fPpnF5MmbGPMfmLCJycPBtDzqYsN+UZlk9xpUmTTECG1 NjXP1j26DuWoA== Original-Received: by socrates.aleph0.info (Postfix, from userid 1000) id 1A22D96D50; Fri, 10 May 2019 06:49:31 -0300 (-03) Content-Disposition: inline In-Reply-To: <8736lm3dpb.fsf@gmx.de> 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:159029 Archived-At: Hello Michael, Thank you for your comments! On Fri, May 10, 2019 at 10:40:00AM +0200, Michael Albinus wrote: > Jeronimo Pellegrini writes: > > +(defconst tramp-hexdump-awk-coding-test > > + "test -c /dev/zero && \ > > +busybox hexdump -v -e '16/1 \" %02x\" \"\\n\"' < /dev/null && \ > > This must be "hexdump", not "busybox hexdump". The original tramp-awk-encode uses "busybux awk". Is there a particular reason for that, or could it also be changed to "awk"? As far as I can remember, devices with busybox installed will usually have symlinks for the usual binary names, like awk -> busybox, and so on, so if busybox is called and argv[0] is "awk" it knows the user's intention. So, using "busybox awk" and "busybox hexdump" would guarantee that this encoding scheme works on devices where the symlinks are not available (I've never seen one actually); on the other hand, it would break the encoding method for computers which do have awk and hexdump, but no busybox... What do we do? Duplicate the functions again? tramp-busybox-od-awk-encode tramp-busybox-hexdump-awk-encode tramp-busybox-awk-decode tramp-od-awk-encode tramp-hexdump-awk-encode tramp-awk-decode I feel like that would be a too large amount of duplicated code... Or is that ok? Thank you for your patience! J.