From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 05 12:02:26 2014 Received: (at submit) by debbugs.gnu.org; 5 Aug 2014 16:02:26 +0000 Received: from localhost ([127.0.0.1]:58966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEhBx-00056m-0J for submit@debbugs.gnu.org; Tue, 05 Aug 2014 12:02:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43196) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEhBt-00056Y-En for submit@debbugs.gnu.org; Tue, 05 Aug 2014 12:02:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEhBh-0006eI-9V for submit@debbugs.gnu.org; Tue, 05 Aug 2014 12:02:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:59908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEhBh-0006e8-71 for submit@debbugs.gnu.org; Tue, 05 Aug 2014 12:02:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEhBa-0000bk-E8 for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 12:02:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEhBU-0006cZ-DZ for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 12:02:02 -0400 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]:57744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEhBU-0006cU-2O for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 12:01:56 -0400 Received: by mail-pa0-f41.google.com with SMTP id rd3so1662959pab.14 for ; Tue, 05 Aug 2014 09:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=uzV4Ol/ONa/GfWXvbgXs2dr3bo/V2vSPwJel5w49ySw=; b=Ne0m19FaOfJSc6KLla64tAhc8oQdCWfsKoKdWUtn7dD38BIny1TSvtlpfSkQ4GUig2 7fJ5w3J6YtbbmSGdJHJJmmXygwG19N7t6DmVyvL7f6FmK9a0PZ3KCoV2bHZOOAvvzlCR Y9Rv4+3DI0XG4BiYNA7a81C5W5iRk/y0tt/3bGYL4OLulSHYgyouj8RRr5G7enkjufjx pI84EaNhsVz3iX3RPXHbxmLlZc66kqXTXrLp7QombWGn5fDjZ7wCM+5OOzVcobJeQJI6 5EI3qSV8L8uV3eoUfo6m1OVEQ2BkqPfrbwt4Sa0OGBbZXZrSzYEte0qmQ6Vc6+acvjLz gyAA== X-Received: by 10.67.15.71 with SMTP id fm7mr5245966pad.45.1407254514670; Tue, 05 Aug 2014 09:01:54 -0700 (PDT) Received: from home.jasonrumney.net ([180.75.127.123]) by mx.google.com with ESMTPSA id et1sm2461827pbc.39.2014.08.05.09.01.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Aug 2014 09:01:53 -0700 (PDT) Received: by home.jasonrumney.net (Postfix, from userid 1000) id 8D63B1436; Wed, 6 Aug 2014 00:01:44 +0800 (MYT) From: Jason Rumney To: bug-gnu-emacs@gnu.org Subject: 24.4.50; tramp uses wrong arguments to nc Date: Wed, 06 Aug 2014 00:01:44 +0800 Message-ID: <87oavzx6vr.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) When connecting to a Busybox/Linux based router with tramp's new nc method, the file transfer fails. Below is the relevant debug log: --------------------------------------------------------------------- ///3359aa65e9a4645eb0b84d831a25d5c2#$ 23:26:29.200991 tramp-send-command (6) # nc -l -p 51257 w C-s n c SPC w w Recent messages: Tramp: Inserting `/nc:mt7109@10.1.1.254:/etc/TZ'...failed File exists, but cannot be read Tramp: Checking `vc-registered' for /nc:mt7109@10.1.1.254:/etc/TZ...done File exists, but cannot be read Mark set [10 times] is undefined is undefined Mark set [4 times] Mark saved where search started Load-path shadows: None found. Features: (shadow google-contacts-message google-contacts xml url-cache url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars google-oauth emacsbug tramp-cmds misearch multi-isearch vc-bzr noutline outline view cus-edit mule-util sort gnus-cite smiley shr-color color shr browse-url mm-archive mail-extr gnus-async gnus-bcklg gnus-ml disp-table nndraft nnmh nnfolder utf-7 epa-file epa derived epg gnutls network-stream starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig mailcap nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message sendmail cl-macs dired rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win mmm-mode mmm-univ mmm-class mmm-region mmm-auto mmm-vars mmm-utils mmm-compat cl flycheck find-func help-mode rx subr-x pcase dash bbdb-ext-autoloads calfw-gcal-autoloads doctags-autoloads edmacro kmacro org-cua-dwim-autoloads info vcard-autoloads package tramp-cache tramp-sh tramp tramp-compat auth-source password-cache tramp-loaddefs trampver shell pcomplete comint ansi-color ring format-spec advice jka-compr delsel paren recentf tree-widget gnus gnus-ems nnheader gnus-util mail-utils mm-util help-fns mail-prsvr wid-edit cl-loaddefs cl-lib time cua-base cus-start cus-load easy-mmode semantic/db-mode semantic/db gv eieio-base semantic/idle semantic/format ezimage semantic/tag-ls semantic/find semantic/ctxt semantic/util-modes easymenu semantic/util semantic semantic/tag semantic/lex semantic/fw eieio byte-opt bytecomp byte-compile cconv eieio-core mode-local cedet org-loaddefs server time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 318131 45985) (symbols 48 39348 1) (miscs 40 345 504) (strings 32 80886 11308) (string-bytes 1 2508747) (vectors 16 40101) (vector-slots 8 1413448 210541) (floats 8 467 633) (intervals 56 3071 230) (buffers 976 28) (heap 1024 76100 1461)) From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 06 03:44:06 2014 Received: (at 18199) by debbugs.gnu.org; 6 Aug 2014 07:44:06 +0000 Received: from localhost ([127.0.0.1]:59855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEvtF-0003et-SG for submit@debbugs.gnu.org; Wed, 06 Aug 2014 03:44:06 -0400 Received: from mout.gmx.net ([212.227.15.19]:56553) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEvtC-0003eC-3U for 18199@debbugs.gnu.org; Wed, 06 Aug 2014 03:44:03 -0400 Received: from detlef.gmx.de ([87.146.59.162]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0LfSeH-1Wd8DW2FIn-00p2oC; Wed, 06 Aug 2014 09:43:51 +0200 From: Michael Albinus To: Jason Rumney Subject: Re: bug#18199: 24.4.50; tramp uses wrong arguments to nc References: <87oavzx6vr.fsf@gnu.org> Date: Wed, 06 Aug 2014 09:43:46 +0200 In-Reply-To: <87oavzx6vr.fsf@gnu.org> (Jason Rumney's message of "Wed, 06 Aug 2014 00:01:44 +0800") Message-ID: <878un26p1p.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:ibcAnf82fTmCuPw94dccFxVR8UdElVOcKcV64+tBNrZpOAoA86U PQ1HIt+kyEB3UbtWeQQAk6qYN6lQNNlSR205EBSVZiKnBfnZYR0yShWvirHiTQj4CETDMpg L5X9pL0jh0iDWDi4jc4Hao6AGoJ3/R1Pd9RqfYpfCiSQzBOGyvhcL6UYsfICrQTMmsuToVu pOoXlmO+lZqcQezlAjFew== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18199 Cc: 18199@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Jason Rumney writes: Hi Jason, > When connecting to a Busybox/Linux based router with tramp's new nc method, > the file transfer fails. Below is the relevant debug log: > > --------------------------------------------------------------------- > ///3359aa65e9a4645eb0b84d831a25d5c2#$ > 23:26:29.200991 tramp-send-command (6) # nc -l -p 51257 23:26:29.250828 tramp-wait-for-regexp (6) # > > ///3359aa65e9a4645eb0b84d831a25d5c2#$ > 23:26:29.251550 tramp-send-command (6) # netstat -l | grep -q :51257 > 23:26:29.308484 tramp-wait-for-regexp (6) # > BusyBox v1.6.1 (2011-05-25 14:47:48 CST) multi-call binary > > Usage: > nc [IPADDR PORTNUM] > > Open a pipe to IP:port [...] > The actual command required is > > nc -l 51257 8--- # nc -l 51257 nc: bad address '51257' # nc -h nc: invalid option -- h BusyBox v1.19.3 (2012-08-08 12:53:46 CEST) multi-call binary. Usage: nc [-iN] [-wN] [-l] [-p PORT] [-f FILE|IPADDR PORT] [-e PROG] Open a pipe to IP:PORT or FILE -e PROG Run PROG after connect -l Listen mode, for inbound connects (use -l twice with -e for persistent server) -p PORT Local port -w SEC Timeout for connect -i SEC Delay interval for lines sent -f FILE Use file (ala /dev/ttyS0) instead of network --8<---------------cut here---------------end--------------->8--- I don't see how to unify both syntax variants. Therfore, I will add a check for nc prior the first call, in order to determine what to use. Alternatively, it could be made configurable; haven't decided yet. This might take some days. For further testing (which would much be appreciated!), you could use the following patch: --8<---------------cut here---------------start------------->8--- *** /home/albinus/src/emacs/lisp/net/tramp-sh.el.~117648~ 2014-08-06 09:23:05.687261671 +0200 --- /home/albinus/src/emacs/lisp/net/tramp-sh.el 2014-08-06 09:22:01.750100553 +0200 *************** *** 218,225 **** ;; We use "-v" for better error tracking. (tramp-copy-args (("-w" "1") ("-v") ("%h") ("%r"))) (tramp-remote-copy-program "nc") ! ;; We use "-p" as required for busyboxes. ! (tramp-remote-copy-args (("-l") ("-p" "%r"))) (tramp-default-port 23))) ;;;###tramp-autoload (add-to-list 'tramp-methods --- 218,224 ---- ;; We use "-v" for better error tracking. (tramp-copy-args (("-w" "1") ("-v") ("%h") ("%r"))) (tramp-remote-copy-program "nc") ! (tramp-remote-copy-args (("-l") ("%r"))) (tramp-default-port 23))) ;;;###tramp-autoload (add-to-list 'tramp-methods --8<---------------cut here---------------end--------------->8--- Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 06 04:18:20 2014 Received: (at 18199) by debbugs.gnu.org; 6 Aug 2014 08:18:20 +0000 Received: from localhost ([127.0.0.1]:59883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEwQN-0004US-DJ for submit@debbugs.gnu.org; Wed, 06 Aug 2014 04:18:20 -0400 Received: from cantor2.suse.de ([195.135.220.15]:44126 helo=mx2.suse.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEwQG-0004UC-83 for 18199@debbugs.gnu.org; Wed, 06 Aug 2014 04:18:17 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4E10CAD0D; Wed, 6 Aug 2014 08:18:10 +0000 (UTC) From: Andreas Schwab To: Michael Albinus Subject: Re: bug#18199: 24.4.50; tramp uses wrong arguments to nc References: <87oavzx6vr.fsf@gnu.org> <878un26p1p.fsf@gmx.de> X-Yow: Did an Italian CRANE OPERATOR just experience uninhibited sensations in a MALIBU HOT TUB? Date: Wed, 06 Aug 2014 10:18:10 +0200 In-Reply-To: <878un26p1p.fsf@gmx.de> (Michael Albinus's message of "Wed, 06 Aug 2014 09:43:46 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 18199 Cc: 18199@debbugs.gnu.org, Jason Rumney X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) Michael Albinus writes: > Well, as you might guess I have tested this with my own equipment. My > silly router runs a more recent version of busybox, which requires the > "-p" prefix for nc's port specification: > > # nc -l 51257 > nc: bad address '51257' > # nc -h > nc: invalid option -- h > BusyBox v1.19.3 (2012-08-08 12:53:46 CEST) multi-call binary. > > Usage: nc [-iN] [-wN] [-l] [-p PORT] [-f FILE|IPADDR PORT] [-e PROG] It's more likely a BusyBox configure option, since the version I have (v1.19.4 from openWRT) doesn't even accept -l. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 06 05:35:41 2014 Received: (at 18199) by debbugs.gnu.org; 6 Aug 2014 09:35:41 +0000 Received: from localhost ([127.0.0.1]:59928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XExdE-0006Q9-Uh for submit@debbugs.gnu.org; Wed, 06 Aug 2014 05:35:41 -0400 Received: from mout.gmx.net ([212.227.15.15]:54283) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XExdA-0006Ps-NB for 18199@debbugs.gnu.org; Wed, 06 Aug 2014 05:35:37 -0400 Received: from detlef.gmx.de ([87.146.59.162]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0Mb8MV-1Wzm7h2n2R-00KgxJ; Wed, 06 Aug 2014 11:35:26 +0200 From: Michael Albinus To: Andreas Schwab Subject: Re: bug#18199: 24.4.50; tramp uses wrong arguments to nc References: <87oavzx6vr.fsf@gnu.org> <878un26p1p.fsf@gmx.de> Date: Wed, 06 Aug 2014 11:35:20 +0200 In-Reply-To: (Andreas Schwab's message of "Wed, 06 Aug 2014 10:18:10 +0200") Message-ID: <874mxq6jvr.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:V1zo2cgmYxviPCRawF+olrMq2puIEHo70Tt0p0aXcgVZPiasKYL VVmBxNgs1Ny/ShixG8KRArZoYjackAltFPXXUoYMLOAJs71hUcYIK4M2qktA5eF0YZyJ9dd Ss4Vi3iQNHUO11q9042d4j6t0l/RHoy9pqtxEKYlJcBBnNzp4XxUTW0OoY20vuNxj4d1RVY K+A7pyRJ4jzUXQ+ub3euw== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18199 Cc: 18199@debbugs.gnu.org, Jason Rumney X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Andreas Schwab writes: > It's more likely a BusyBox configure option, since the version I have > (v1.19.4 from openWRT) doesn't even accept -l. Indeed, there is a busybox build time option (CONFIG_NC_SERVER). But this is not related to the used command line syntax. Agreed, Tramp shall check whether the nc listening feature is enabled; it shall raise an error in case it isn't. Noted. > Andreas. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 06 11:37:10 2014 Received: (at 18199-close) by debbugs.gnu.org; 6 Aug 2014 15:37:10 +0000 Received: from localhost ([127.0.0.1]:60468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XF3H3-0002Mp-5h for submit@debbugs.gnu.org; Wed, 06 Aug 2014 11:37:09 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:39018) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XF3H1-0002MO-D2 for 18199-close@debbugs.gnu.org; Wed, 06 Aug 2014 11:37:08 -0400 Received: by mail-pd0-f174.google.com with SMTP id fp1so3490239pdb.5 for <18199-close@debbugs.gnu.org>; Wed, 06 Aug 2014 08:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=qH33Dz5YAc7yiSxz+/rrgPCNG5a7WYPvyKHfyrKIX3s=; b=EsaMoSdX9gwpt3f4OPnBebL2fZzlZau0mmloWmTyWsfoZu7SLmhqPuWeRpbgzxj33F L8eDNyofo/C3znZQJFk9xDErToxiwGmJfvH+yeLAhVjmP8RVWSKJhdC0FScT4rnSwPjL uk/BnT5QimkUMciHPhEoh6xUOL7Q13pn7J9oKyazfqWqsfJY4PfCIUFrwAc9tI6Na49j 78VG2Qur3lZXczj3jymkzshE62f5Hts5YkstP3DBoYV4lIxLN8gxDXwl35259TeTC9VH ruTHk+vhgZPtXVwZlE5WyolFVyOnUm+JIZE4q4Hny5/5Qm30BRC+sRol2oufnFtwcZFR ygkA== X-Received: by 10.70.132.162 with SMTP id ov2mr12117790pdb.118.1407339421311; Wed, 06 Aug 2014 08:37:01 -0700 (PDT) Received: from home.jasonrumney.net ([180.75.127.123]) by mx.google.com with ESMTPSA id pn4sm1655489pbb.7.2014.08.06.08.36.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Aug 2014 08:37:00 -0700 (PDT) Received: by home.jasonrumney.net (Postfix, from userid 1000) id D3CA116A7; Wed, 6 Aug 2014 23:36:50 +0800 (MYT) From: Jason Rumney To: Andreas Schwab Subject: Re: bug#18199: 24.4.50; tramp uses wrong arguments to nc References: <87oavzx6vr.fsf@gnu.org> <878un26p1p.fsf@gmx.de> Date: Wed, 06 Aug 2014 23:36:50 +0800 In-Reply-To: (Andreas Schwab's message of "Wed, 06 Aug 2014 10:18:10 +0200") Message-ID: <87y4v1y6i5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18199-close Cc: 18199-close@debbugs.gnu.org, Michael Albinus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) tag 18199 wontfix close 18199 thanks Andreas Schwab writes: > Michael Albinus writes: > >> Well, as you might guess I have tested this with my own equipment. My >> silly router runs a more recent version of busybox, which requires the >> "-p" prefix for nc's port specification: > > It's more likely a BusyBox configure option, since the version I have > (v1.19.4 from openWRT) doesn't even accept -l. Now that I've modified my local tramp to remove the -p, I find that though nc -l 51257 does not give any errors, it isn't actually listening on the port either. I'm not sure what it is doing. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 07 05:27:47 2014 Received: (at 18199) by debbugs.gnu.org; 7 Aug 2014 09:27:47 +0000 Received: from localhost ([127.0.0.1]:33319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFJz8-0006zt-Vq for submit@debbugs.gnu.org; Thu, 07 Aug 2014 05:27:47 -0400 Received: from mout.gmx.net ([212.227.15.15]:55680) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFJz6-0006zd-Ko for 18199@debbugs.gnu.org; Thu, 07 Aug 2014 05:27:45 -0400 Received: from detlef.gmx.de ([87.146.56.89]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MJBRC-1XGyfq3z4s-002kkS; Thu, 07 Aug 2014 11:27:37 +0200 From: Michael Albinus To: Jason Rumney Subject: Re: bug#18199: 24.4.50; tramp uses wrong arguments to nc References: <87oavzx6vr.fsf@gnu.org> <878un26p1p.fsf@gmx.de> <87y4v1y6i5.fsf@gnu.org> Date: Thu, 07 Aug 2014 11:27:28 +0200 In-Reply-To: <87y4v1y6i5.fsf@gnu.org> (Jason Rumney's message of "Wed, 06 Aug 2014 23:36:50 +0800") Message-ID: <87mwbgvedb.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:mUo3BZqKnN9IU6KWc+rDqciiaVOj/kzCfT98uG2DPg0TBxRf9iQ eb/6shFt+1G7OPaSCKi/6TBkPG/I5qFqr0Gk4D9iXgOvuZPPm/P0T14iI+jqF/cIRYlSmzi G+5sU/3eaVWUNFypezMj1rkFV0aMmM3/FQsow6FqjiqnKzCHhxIMMNJAMn2cX/DkR0LYRz5 /9Ic0muweSVrNuwsycdfA== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18199 Cc: Andreas Schwab , 18199@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Jason Rumney writes: > Now that I've modified my local tramp to remove the -p, I find that > though nc -l 51257 does not give any errors, it isn't actually listening > on the port either. I'm not sure what it is doing. As said in my other message to Andreas, busybox might not be compiled with the nc listening feature. Anyway, I've committed a patch which allows you to overwrite the "nc -l ..." arguments. Tramp's manual says --8<---------------cut here---------------start------------->8--- The =E2=80=98nc=E2=80=99 command will be used with the =E2=80=98nc=E2= =80=99 method. On the remote host, a listener will be installed. Unfortunately, the command line syntax for this has been changed with the different =E2=80=98busy= box=E2=80=99 versions. TRAMP uses the following syntax (see =E2=80=98tramp-methods= =E2=80=99): # nc -l -p 42 If your remote =E2=80=98nc=E2=80=99 refuses to accept the =E2=80=98-p= =E2=80=99 parameter, you could overwrite the syntax with the following form: (add-to-list 'tramp-connection-properties `(,(regexp-quote "192.168.0.1") "remote-copy-args" (("-l") ("%r"= )))) with =E2=80=98192.168.0.1=E2=80=99 being the IP address of your remote= host (*note Predefined connection information::). --8<---------------cut here---------------end--------------->8--- Best regards, Michael. From unknown Sun Jun 15 08:44:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 04 Sep 2014 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator