From unknown Mon Jun 16 23:48:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#71972 <71972@debbugs.gnu.org> To: bug#71972 <71972@debbugs.gnu.org> Subject: Status: 31.0.50; Tramp does not parse ipv6 address with port correctly Reply-To: bug#71972 <71972@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:48:13 +0000 retitle 71972 31.0.50; Tramp does not parse ipv6 address with port correctly reassign 71972 emacs submitter 71972 Yikai Zhao severity 71972 normal tag 71972 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 06 08:24:35 2024 Received: (at submit) by debbugs.gnu.org; 6 Jul 2024 12:24:36 +0000 Received: from localhost ([127.0.0.1]:45717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQ4Sx-0007SI-J7 for submit@debbugs.gnu.org; Sat, 06 Jul 2024 08:24:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:54172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQ4Su-0007S9-Tw for submit@debbugs.gnu.org; Sat, 06 Jul 2024 08:24:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQ4Ql-0000Dq-20 for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2024 08:22:19 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sQ4Qj-0000lC-1n for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2024 08:22:18 -0400 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1fb3b7d0d56so11481855ad.1 for ; Sat, 06 Jul 2024 05:22:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=z1k.dev; s=google; t=1720268535; x=1720873335; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=9WfD2/It6lNXOwQa/n3xwq6oZG6UnP7Q6EVFYPK3gD4=; b=H7BxBEFq+NiRrt6OszHs6cabh0UlkenGU+M1kDRkfWsbHcHYP8T/Xbnref3IigrEqb yKvmGwmsGIZQ0z4NMTs8uq3jteTkuAk+/VgJoLHqt/7n7H3xMcPbwoKiy3EFRTKCujn0 YO6RoA5qzBv/Vt03w/PG1asf3NGfdmfRu5Lnpq4qwEjza0THu9AUHZK2Ob9Jan7jkfnp J9dd8kyvrabhZcLWptTzvlhQ9dbbZKQf72L97OUStWvaOQOCXMAy922SdqxwDH620CF5 lkLBZ/WlLKdOQO+1tkig9btg+Az2Dx59qfhaEo7ahgKDQ729qKqyWqrLJqDbqzLyPNya vj3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720268535; x=1720873335; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9WfD2/It6lNXOwQa/n3xwq6oZG6UnP7Q6EVFYPK3gD4=; b=QRrCw5MmliOgYxu2V4kleC3fonhGFN93JDGfccdGHzFimJTLRVIXMiiUBpN48Ruqnt G1Q//LAa9LgPJVbZXPLZriGwYweNjaJArc3yc54mwjrPDkOXihsALusw+2W3GVgqcnd7 RrkB7hDcyaA5uahFsiV9+HVob7JO9OmtI9sb846blgF8+HEDLS1jhPK+UE0KGT9O/deX C1xZLujc5YysEYY3iCsHddIz4giEFXMY+OEYsePYd1/IwaynZPVZQnm7A/K9mZDRDRBV 98mkoo4hWT5bEl4MpgeBDrbUCuIB/FHZBdvshPlDFwPnU8DnC4H7ZmgJ9lylwcPAhCyV 2Fug== X-Gm-Message-State: AOJu0Yw3Z7+yFfeTf5wRrTVANyvGq4I6skh71i9auhsJwittoYFB/w7e kGqtDQh2Fiy8TgPze2N/DOBdnM+uhUKIrv/Lus71++r/sHTzGdg/bio0/BbwVfPW/MVey324Eg7 e+sk= X-Google-Smtp-Source: AGHT+IGoRFFX6zBino/BFY+VJYVcpV0f4bz2ac2RorUHMFPhI7Q7RJLj9V8eIYthaaLL1PU7qLHu7Q== X-Received: by 2002:a17:902:f645:b0:1f6:dfbc:7f1c with SMTP id d9443c01a7336-1fb33e8ed84mr53714815ad.35.1720268534675; Sat, 06 Jul 2024 05:22:14 -0700 (PDT) Received: from Oldtown ([2a06:a005:8d1:3000:7371:2b24:e014:6025]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fac10c8af8sm155761555ad.34.2024.07.06.05.22.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jul 2024 05:22:14 -0700 (PDT) From: Yikai Zhao To: bug-gnu-emacs@gnu.org Subject: 31.0.50; Tramp does not parse ipv6 address with port correctly X-Debbugs-Cc: Date: Sat, 06 Jul 2024 20:22:05 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=i@blahgeek.com; helo=mail-pl1-x62f.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -2.1 (--) To reproduce: (tramp-dissect-file-name "/ssh:[2001::abcd]#2202:/tmp/xxx") Expected result: the result "port" should be "2202" Current result: the result "port" is empty In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10) of 2024-07-06 built on a40438a00efa Repository revision: bd86a6c4fde1aa42ea9e8b5434f0cb63f8d52684 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101013 System Description: Gentoo Linux From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 06 11:02:46 2024 Received: (at 71972) by debbugs.gnu.org; 6 Jul 2024 15:02:46 +0000 Received: from localhost ([127.0.0.1]:46563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQ6w2-0003Qp-BT for submit@debbugs.gnu.org; Sat, 06 Jul 2024 11:02:46 -0400 Received: from mout.gmx.net ([212.227.15.19]:54999) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQ6vz-0003Qa-S4 for 71972@debbugs.gnu.org; Sat, 06 Jul 2024 11:02:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1720278151; x=1720882951; i=michael.albinus@gmx.de; bh=dv4dLF3yeqUlKxqoxtR+ZymNYMecSBb6JS+x018aBsg=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=U00KnKo4nxK14gD4vVS5EBj5FY6zs2yvlZjz75w7XX6D8pga6N560RyzN2GjEhEJ cescBC7EiOE2h2/moBlXfjxhUBqwsgTlNlEBRuFF0NDZlPQnYuH7PTx4R8aVmMNsU 2CPbIG/sehR6oQ7+lSfV0QSOdPBYt8CEZsi0Guc10qjAkpO5CRLw4RdyuVIYk47ou R6FsdgOUSez3+XsHr7i/NXtk+BC6YI81yfnlLp0uJL1YXieiLSbr/xp3xtTcvm+tJ S8i+Bwvl99YTYNmAXR0TV0AgH2+kAYxWAGwGpSObcxeGLx3McxaiwnJ5Ib1qul8dt aLywX4GTUc02fIHwyw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MmlXA-1s1X1d21Re-00h2fF; Sat, 06 Jul 2024 17:02:31 +0200 From: Michael Albinus To: Yikai Zhao Subject: Re: bug#71972: 31.0.50; Tramp does not parse ipv6 address with port correctly In-Reply-To: (Yikai Zhao's message of "Sat, 06 Jul 2024 20:22:05 +0800") References: Date: Sat, 06 Jul 2024 17:02:28 +0200 Message-ID: <87bk3a1s3f.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:mit4i5xL7eNqapkgwgYV67Ud+XHNQOJYG0UQCs9UlAWawJ18HkK KknHiJb+4dbGUA29ANFkGgOK+EX7HPgSwd1lymMBiFs0c3GyM8fVA3IEN1PXj6YEGK+y6Dc ozkZ/JO7y7uVis0Q/0adMewJmDZEiW1EQdygRTuPN+/gu5kPd4EKLXU+C+JvS8bsSJ1JhQp nD/lhZyB374lnL0E7PMQQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:r9uChSSZ0Kk=;+FOtQ5y9g+uqzNkA4Hnu6EaRjB0 E+SqiZ6/WMkmtA7TsQO+WfCbo8bVX3X4XIjOuUX+pTh6l+Ijh0VSMPmi5PnXhIDwVCtWXli9D nK6NRjTzwjkNg2CTchHlYu78r56j2saRKwOXkCg7MOTm+MrmywyNtefFSSs/gWsTP5QCWM9vI KCJ7jJPmAAsFDii8ISRjj2y9tNhFGjeM4LyUrUYuyE9ArdfM5zIl2q2ZPFJOwHWlN4Ky96NHD ocaQ5eP3OJpQMSUFqVhl/9jC2ciCyk2L4JLeNOkLKtHhZdBmXoElfS1LtzJeg1ZRi4Ab1TLyZ 315SwyGny0m1jRMpUkKcsH+JH39svcoyNkhmL4vyD4yaVt66WtLEkikKxunB3DtRya+5VeYOC 1j4WuPR/VmujpTAo+6NI0rvoKb09RWSHh7gAWIlecr/ZBrasNdkZeg9craHfVd7mJFhvGEjwA r1HF+VfJt+uIgnAqM0lIZ7VQ3XgspU+U+2183FaI872cxDRab1vqbqpc5ZFVW+n0Tb+oCK7+W EXbgoX8slcgEZhbOJEZ1wI1mVN2X7OopDLGIXrCe0316vaWeRUEmTjrfGegbHMEIY8gqsOGKV n6EF2CC0xgcFRGQJ6QLT8RYUm5jbjMzer2Ugh0qvIQHN/4RxwLHOnUbfNzxVWPjULlJtFaVWT pWgi+/gUfIESIBj0LW399a/Pcu+PgZJK7HazxjXMsPg+jRAf47uq/Oj9zrjm6/dRrlml5xc6i Jxf7iQzGIG+v3JMQbDJ58oHOPT1zdX81tG/ICBnf9cdXZNTiA/KQmj2m5nZWT8JNVpe6EUbCN /XCwyPMBYlc0+Xcm3l+EJkjJPmoc2aPmdV/kq0ni6WUTM= X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Yikai Zhao writes: Hi, > To reproduce: > > (tramp-dissect-file-name "/ssh:[2001::abcd]#2202:/tmp/xxx") > > Expected result: the result "port" should be "2202" > > Current result: the result "port" is empty Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.38.155 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.19 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-Debbugs-Envelope-To: 71972 Cc: 71972@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Yikai Zhao writes: Hi, > To reproduce: > > (tramp-dissect-file-name "/ssh:[2001::abcd]#2202:/tmp/xxx") > > Expected result: the result "port" should be "2202" > > Current result: the result "port" is empty Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.19 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.38.155 listed in zen.spamhaus.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Yikai Zhao writes: Hi, > To reproduce: > > (tramp-dissect-file-name "/ssh:[2001::abcd]#2202:/tmp/xxx") > > Expected result: the result "port" should be "2202" > > Current result: the result "port" is empty Indeed. --8<---------------cut here---------------start------------->8--- (tramp-dissect-file-name "/ssh:[2001::abcd]#2202:/tmp/xxx") => (tramp-file-name "ssh" nil nil "2001::abcd#2202" nil "/tmp/xxx" nil) --8<---------------cut here---------------end--------------->8--- That is a structure, which has "2001::abcd#2202" as host name. Ouch. Will see how I could fix it. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 06 13:01:03 2024 Received: (at 71972) by debbugs.gnu.org; 6 Jul 2024 17:01:03 +0000 Received: from localhost ([127.0.0.1]:46653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQ8mV-0006ZH-65 for submit@debbugs.gnu.org; Sat, 06 Jul 2024 13:01:03 -0400 Received: from mout.gmx.net ([212.227.17.21]:57607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQ8mT-0006Yc-Qr for 71972@debbugs.gnu.org; Sat, 06 Jul 2024 13:01:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1720285249; x=1720890049; i=michael.albinus@gmx.de; bh=8VdSsbnycSxjenSuAX6hrw5sIxltesRDa2oD0jjKXsk=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=Jir0nxZzZjheb5DU8wqD1u/OBEcwOLTKHQY183oFAaN5LmVl1PxZaAPbSp45+VcL qgmMKacauEyelSyYTQwrMzWTmDYApuMEADjLkHyzxZN53mGwL0Wzw9TPAOuwDpyLx d2OU6ADpAZWZngdqh02uXmyXAvNUMvbV5XyVyWceAC8VE8ieMFRAC/NANQYfKIwmG i12+GFG2VaG6OeDKB9iwIBCrP12ZwhFAKW7U1JSv+2tCFM4GolG79CTgi7AR6vxp1 aaLnpGsPfADiVlvjUHIEhZfTaUEraWk7a+LBZLTdU8uOnt4uh7OjD8h2jTbsKXLNu +Mokj1qPVX4WuYqZQg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M3lYB-1sQQ1i14zr-00Gusx; Sat, 06 Jul 2024 19:00:49 +0200 From: Michael Albinus To: Yikai Zhao Subject: Re: bug#71972: 31.0.50; Tramp does not parse ipv6 address with port correctly In-Reply-To: <87bk3a1s3f.fsf@gmx.de> (Michael Albinus's message of "Sat, 06 Jul 2024 17:02:28 +0200") References: <87bk3a1s3f.fsf@gmx.de> Date: Sat, 06 Jul 2024 19:00:48 +0200 Message-ID: <871q461mm7.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:S/14ageaX9QweRiL+wdx7vGbq9Odf5jSgoRZJ8ggX3+2SXfoXM8 gFmBLyinFkPL4s+MNfemM2jv6UULQRiDVqSAI6kUJLzaA/yU60+Luutkey6/R3QxsCcQ3fw iWknzABq0PA23ukTNBJMkibV3IGqWn8HzGGUHq9WSO35ChXp3q6u91ZSW0WOxLcwL0unjxK FiP3VChF7XbXmqJdtfdxg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:CPgSIbvJK5s=;RKUUQmq0B514SwbMNw5SsFYsQjP vOJlz424Wb4AGlZw2sDg025v9RKzT7d1tsGtmCyKubVaJz/Zgcn0FYRHHIaDt0fvWvPXpE8hV 2IPXo0OAp3iz+37fSrUus8iYNav9E0/MCGq32xUZm8enrvtK7Kz0Ob5iFRsL95byJU7yuPKn7 SK7km/+nDZvGnlL8Z89SpZjS605AEP8lLD8kkTwmC+zFbsfR/cAE6Dyq7A7RuKMbZ4/Dqvl3D +uSt2obnVT2QEqWPbas95h7odZ2mYHiWv2sn7ViO8C+Yj+y+t3YF4bnHLD0vCMrpvPdESFIso X+Rz/AZAx9ns2lnaCSQ9qCxf9m2zP245DtAoUSP75oBLZ9hDB7W8XXG7df8GMN7ftgm9WbEVR h/gkEI0fSYKRIVdGqrQR7Fxyt8aBUyo5Q/G9cbFsTiLorjphpEq+Xrvoqm34PNJuPj8HJvZ1O 1HS7rEnsOpibKJPMy9c/zHy/K+MuiTLrSpDzp87d8jSae8yPXriOJgBYk/5oWXaeLgsDVAc5g 6QCCeUGSUS/nzCOdvxPYt0ZQjvkWdVg1TlhMi6Pl9tc7/J7c66sw/jC/Py/OSVSms06IC78uy JhvdF/tnJOa9a6omsko/hhKrkG3xR47ena1a7ilB9eF7j1Wk5QChW3vEkOkQoNhgkKGqp9T6d Kj3KQ8BWqKO/fnWlNkz9SHF6RSLPUHFHkzL0vaIgbKAQaI6g2W6nLBSHqfMn6c0Wdw2Z8fuBh EzfpwS5DKJNjLrl1pV09J2AKBSpd7v0SH5pSvyXzIywsbJ5UTWQ17oUzNDfgHZUc5BpLIB1lM LQqOQ9/OYKZFoAtorKzFC2H/sKjEfg6MWrx+Xe/33Zoy8= X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Michael Albinus writes: Hi, > (tramp-dissect-file-name "/ssh:[2001::abcd]#2202:/tmp/xxx") > => (tramp-file-name "ssh" nil nil "2001::abcd#2202" nil "/tmp/xxx" nil) > > That is a structure, which has "2001::abcd#2202" as host nam [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.21 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.38.155 listed in zen.spamhaus.org] X-Debbugs-Envelope-To: 71972 Cc: 71972@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Michael Albinus writes: Hi, > (tramp-dissect-file-name "/ssh:[2001::abcd]#2202:/tmp/xxx") > => (tramp-file-name "ssh" nil nil "2001::abcd#2202" nil "/tmp/xxx" nil) > > That is a structure, which has "2001::abcd#2202" as host nam [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.21 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.38.155 listed in zen.spamhaus.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain Michael Albinus writes: Hi, > (tramp-dissect-file-name "/ssh:[2001::abcd]#2202:/tmp/xxx") > => (tramp-file-name "ssh" nil nil "2001::abcd#2202" nil "/tmp/xxx" nil) > > That is a structure, which has "2001::abcd#2202" as host name. Ouch. > > Will see how I could fix it. Could you please try the appended patch? It ought to fix the problem. Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable diff --git a/lisp/tramp.el b/lisp/tramp.el index f97ed66c..b35c2017 100644 =2D-- a/lisp/tramp.el +++ b/lisp/tramp.el @@ -1061,7 +1061,10 @@ Derived from `tramp-prefix-port-format'.") (defconst tramp-host-with-port-regexp (rx - (group (regexp tramp-host-regexp)) + (group (| (regexp tramp-host-regexp) + (: (regexp tramp-prefix-ipv6-regexp) + (? (regexp tramp-ipv6-regexp)) + (regexp tramp-postfix-ipv6-regexp)))) (regexp tramp-prefix-port-regexp) (group (regexp tramp-port-regexp))) "Regexp matching host names with port numbers.") --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 07 02:32:37 2024 Received: (at 71972) by debbugs.gnu.org; 7 Jul 2024 06:32:37 +0000 Received: from localhost ([127.0.0.1]:47169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQLRs-0004yG-Tb for submit@debbugs.gnu.org; Sun, 07 Jul 2024 02:32:37 -0400 Received: from mail-lj1-f171.google.com ([209.85.208.171]:60879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQLRq-0004y1-Rj for 71972@debbugs.gnu.org; Sun, 07 Jul 2024 02:32:35 -0400 Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2ee7885aa5fso30655091fa.1 for <71972@debbugs.gnu.org>; Sat, 06 Jul 2024 23:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=z1k.dev; s=google; t=1720333885; x=1720938685; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VBGkc3ld9kl+OHrRC0oIBWVS77yD8Uzz9SfrgzwrOQI=; b=eXl0rfU1JxB1FrvOPMy3/C2JuIhzh5gx7/eBvRz35XDA75HvLvLmjwdeVN1Mm2oeqv sxB2d8iUWDgdtZ0qVQyV8ytdXwkjMhX6k4jDzZToA7fmu0nASHiBM/hlEyBB3RxCFeJN ZJoxlIylUfbX5K9pZF+GPcjt9Yjj4EsCvLY54m1zf94MzoJdBKQjOpegXAU7WPJUS1f8 LxP9k6imNRDqyawGCq4igAK/EsaQxcMI4Ncxse4ImCYxER9uZWmYS/PojIiwTKBeAqeL V7JpGWko4c7tGjW6zwon4SdbVBwU2XyLmAWVVFH63nQsm0IihmqtZre06Lb2SviCvqNm +HgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720333885; x=1720938685; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VBGkc3ld9kl+OHrRC0oIBWVS77yD8Uzz9SfrgzwrOQI=; b=tOTcq4WloTPEGShgzYvOfI18lwcMjqPJR37/DeQ0Eqrrn81KVyqURWeM1z5UR/iokj FqEQCsq0lDuGl1PQxq5mopd1HFc0Tmqe2E12W8JUCok0yhHeA+DSabZex5mfnubHygpZ AaR3YGWITEg/gdsRDSSFJ5nbRaQBy1MGDSyjQNbP+YOS54xSDD5v80LD+Jo8NLUOURAZ OHxjZb4TydQBJnSySucILOB7pE0xKikLtqvb4T0vy2gRUb7B39qxGUBR/Oef1Fk1y5Jw ds5rU56zTRHdFlShGgWlBR0J+uSyhNU6gs+54Vgx/fbq/T7D/qfanf8/PfYViQFDZM8H Z6HQ== X-Gm-Message-State: AOJu0Yw2QTVgTuDJl1PoWx4cbU/Xj3uenatqEx6CM1evUeZGYGGGzc0H AgCz7k/Wmegh5jrMl5rYm4lJBTli5Muiu58LjjcNpQDabmOIPSz/4hp8gRo2nQ3Z8K3IOJlz5Ub QJlyrSH2jE2YTPbrmdPT40KA998wA03fluDAuCA== X-Google-Smtp-Source: AGHT+IELt2jTZH8HNJfzaIS5q/WFI8+2mwWpc/guahhUCptiiI8WKzEa0fc5cpsx5pyg0fscXlPxkUwcKL2rjRmOS+I= X-Received: by 2002:a2e:998d:0:b0:2ee:4dc6:fe28 with SMTP id 38308e7fff4ca-2ee8ee00264mr56130381fa.40.1720333884738; Sat, 06 Jul 2024 23:31:24 -0700 (PDT) MIME-Version: 1.0 References: <87bk3a1s3f.fsf@gmx.de> <871q461mm7.fsf@gmx.de> In-Reply-To: <871q461mm7.fsf@gmx.de> From: Yikai Zhao Date: Sun, 7 Jul 2024 14:31:13 +0800 Message-ID: Subject: Re: bug#71972: 31.0.50; Tramp does not parse ipv6 address with port correctly To: Michael Albinus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 71972 Cc: 71972@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.8 (/) Hi, Thanks for the patch. However, with this patch applied to master, the resul= t is: (tramp-dissect-file-name "/ssh:[2001::abcd]#2202:/tmp/xxx") =3D> (tramp-file-name "ssh" nil nil #("Oldtown" 0 7 (tramp-default t)) "2202" "/tmp/xxx" nil) [2 times] ("oldtown" is my local hostname). Although the port is correctly parsed, the host is now incorrect. Also note that in master, the correct file path for tramp.el is lisp/net/tramp.el, so I had to manually edit your patch before applying it. What version is your patch based on? Maybe the result is different in different versions? On Sun, Jul 7, 2024 at 1:00=E2=80=AFAM Michael Albinus wrote: > > Michael Albinus writes: > > Hi, > > > (tramp-dissect-file-name "/ssh:[2001::abcd]#2202:/tmp/xxx") > > =3D> (tramp-file-name "ssh" nil nil "2001::abcd#2202" nil "/tmp/xxx" ni= l) > > > > That is a structure, which has "2001::abcd#2202" as host name. Ouch. > > > > Will see how I could fix it. > > Could you please try the appended patch? It ought to fix the problem. > > Best regards, Michael. > From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 07 06:29:03 2024 Received: (at 71972) by debbugs.gnu.org; 7 Jul 2024 10:29:03 +0000 Received: from localhost ([127.0.0.1]:47454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQP8g-0005Tn-OW for submit@debbugs.gnu.org; Sun, 07 Jul 2024 06:29:03 -0400 Received: from mout.gmx.net ([212.227.17.22]:43625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQP8f-0005TH-4V for 71972@debbugs.gnu.org; Sun, 07 Jul 2024 06:29:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1720348128; x=1720952928; i=michael.albinus@gmx.de; bh=9qL0kiIzwIZcKDfr9duviZCjqzN54++MFMLi8b8vCW4=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=SNFjwo/4RXFHWY6iL/WbBmKh6LObHsmyDLxRE6/uzOFlM+20RqNavZoVD8h5GEQM O74aVxQKCwlkIQUNAIyB+r4RrpyBq7GiAX5rlXcGQsd62csI8wFamtSlbCzbq8ULd Xgbc1rOxZqLOCXav1JyuvQoYGWIfi9OZwLV5Wgpm4HJ+jJBb6nQNcjOqqd+VWxti3 jnIvE5k0bwazAZkwATcGy40rIIQmEkjFpbCHpIG5wGh1R3Buh0XL5UXNklEz6roMh kc7A/KJxdBmlQnJH4I6ZUdNRzqAWq9Kjab48CGrhkNzBn95ag0J4oHwLYV5zO8o+k bisKUKSiEsWajlYNhA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MhD2Y-1rvDFF3gSw-00g7CI; Sun, 07 Jul 2024 12:28:47 +0200 From: Michael Albinus To: Yikai Zhao Subject: Re: bug#71972: 31.0.50; Tramp does not parse ipv6 address with port correctly In-Reply-To: (Yikai Zhao's message of "Sun, 7 Jul 2024 14:31:13 +0800") References: <87bk3a1s3f.fsf@gmx.de> <871q461mm7.fsf@gmx.de> Date: Sun, 07 Jul 2024 12:28:45 +0200 Message-ID: <87v81hzeaq.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:v003HLFUuw7xnPJaykRL8WMBZ4U2AuxkoNDbkMSm99qWdjzQR8H +BDNqlUPpfdP2CE/OgyIx+3Coygmt1YutAqkgqOtQnTwB5p1dDSmzPphW2Sba3S2e1z1PRP r+ByzyvjlEU+H7eAsmK3nUPaQx9kyGK/lvg2tpibbbgCvOyooFoZqmvXNNbdGnoXQ+Gcxr7 oJ5hkDMqYJEMfzzuFHa4w== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:XaRYDRrSgQM=;6NP+kctK6uKhIx1blqCZPhQ3OcH TFp9pcxc/U3LiQnO3vXXGvvNRl2pOJPZBABEVy/d4kDmbdo3k/DIU4o4ze/j6tH/8sVXa0Xv7 m37zbB8ChG1ayfRdKD0R0Ou5fbOK3fVir6l0HKBRnkqLKEh4hP/SS8Vf31y+UY18p8p5Kkkj0 wbYGkmLQkzMEh+Kp+zQiHMyZrfP7zKhrsFsHoGiJhjIZadbxk4vb9Vf9LtSI8upKiEcXJeLi5 hphyGgf6SfX2h9WBCS9DzWguaXe7pLCaXeZ7jEKyuIzt+PxS+OroagLS+0Ab9uKeLK/bBcPdo R6o0a46m5EaeiqIaxTJfaXXmrjOyAk0UBx6f2LeHaYXDWvSGOvn7J5GOgoh2Cm1e+H0VGQuOI opEHwGX3KJH6Mirc8bCaaEI0KlDUa8gkG/hvvZTRKj4eEog5hGaYthmeWpk7Yr8SOpifeX4Cg C9E0U/ANkcD+WvcCvS4od/rdMqBPgKL8eafOyK5vo4/UpLJzN40sQuPr7a0VcDNisLcFPKBJI V/17rQoV4MYXHhduaiFB47tbkRK6dM9toDRw5eoygWLN9sXz4Q058+CqryFaH4+BPAUifsK0K nga/YygUNN5X7jobmDUhhGt1gqAaPXPyYmBtIIQdM00VHD3/qYGhzsICfGvcCMoTQi1AGXaZ1 K7giUqfFsvBBHBo9pziI94BE0tbFFbjp2s9ztU5fj+QrS4BBkob3oEPaGoz5YwyVHE835Rqzh Yrj2TMMwE5OtzYZSv58D3kFbIMxAgiVvxYfWwjNkYtqCglTJdLIWFzN2SzrSmPj+nFAMZE4AI WL5v4lBUNzXTdSCFlKkMe/Kdpe0bJNs5eP1t25ad3sjtA= X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Yikai Zhao writes: > Hi, Hi, Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.22 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.38.155 listed in zen.spamhaus.org] X-Debbugs-Envelope-To: 71972 Cc: 71972@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Yikai Zhao writes: > Hi, Hi, Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.22 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.38.155 listed in zen.spamhaus.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain Yikai Zhao writes: > Hi, Hi, > Thanks for the patch. However, with this patch applied to master, the result is: > > (tramp-dissect-file-name "/ssh:[2001::abcd]#2202:/tmp/xxx") > => (tramp-file-name "ssh" nil nil #("Oldtown" 0 7 (tramp-default t)) > "2202" "/tmp/xxx" nil) [2 times] > > ("oldtown" is my local hostname). Although the port is correctly > parsed, the host is now incorrect. Indeed, we have a race condition. tramp-host-with-port-regexp is defined before tramp-set-syntax has run. Could you, please, try the appended patch indeed? > Also note that in master, the correct file path for tramp.el is > lisp/net/tramp.el, so I had to manually edit your patch before > applying it. What version is your patch based on? Maybe the result is > different in different versions? I develop in the Tramp git repo. The files are identical with the ones in the Emacs git repo. However, there is a different directory structure. Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable diff --git a/lisp/tramp.el b/lisp/tramp.el index f97ed66c..f960b1a3 100644 =2D-- a/lisp/tramp.el +++ b/lisp/tramp.el @@ -78,6 +78,7 @@ (defvar tramp-postfix-ipv6-regexp) (defvar tramp-postfix-host-format) (defvar tramp-postfix-host-regexp) +(defvar tramp-host-with-port-regexp) (defvar tramp-remote-file-name-spec-regexp) (defvar tramp-file-name-structure) (defvar tramp-file-name-regexp) @@ -878,6 +879,7 @@ to be set, depending on VALUE." tramp-postfix-ipv6-regexp (tramp-build-postfix-ipv6-regexp) tramp-postfix-host-format (tramp-build-postfix-host-format) tramp-postfix-host-regexp (tramp-build-postfix-host-regexp) + tramp-host-with-port-regexp (tramp-build-host-with-port-regexp) tramp-remote-file-name-spec-regexp (tramp-build-remote-file-name-spec-regexp) tramp-file-name-structure (tramp-build-file-name-structure) @@ -1059,11 +1061,18 @@ Derived from `tramp-prefix-port-format'.") (defconst tramp-port-regexp (rx (+ digit)) "Regexp matching port numbers.") -(defconst tramp-host-with-port-regexp +(defun tramp-build-host-with-port-regexp () + "Return `tramp-host-with-port-regexp'." (rx - (group (regexp tramp-host-regexp)) + (group (| (regexp tramp-host-regexp) + (: (regexp (tramp-build-prefix-ipv6-regexp)) + (? (regexp tramp-ipv6-regexp)) + (regexp (tramp-build-postfix-ipv6-regexp))))) (regexp tramp-prefix-port-regexp) - (group (regexp tramp-port-regexp))) + (group (regexp tramp-port-regexp)))) + +(defvar tramp-host-with-port-regexp + nil ; Initialized when defining `tramp-syntax'! "Regexp matching host names with port numbers.") (defconst tramp-postfix-hop-format "|" --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 07 06:29:58 2024 Received: (at control) by debbugs.gnu.org; 7 Jul 2024 10:29:58 +0000 Received: from localhost ([127.0.0.1]:47460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQP9a-0005VK-HF for submit@debbugs.gnu.org; Sun, 07 Jul 2024 06:29:58 -0400 Received: from mout.gmx.net ([212.227.15.19]:52909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQP9Y-0005V2-Qo for control@debbugs.gnu.org; Sun, 07 Jul 2024 06:29:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1720348184; x=1720952984; i=michael.albinus@gmx.de; bh=/bCe55O+AZCDWPayX9LVCdclJhTuEfQODfHxkN+bp84=; h=X-UI-Sender-Class:Date:Message-Id:To:From:Subject:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=teFk/zCOQJF5Tmg28sQpvRU4DkWMu3DrGnVksT0elq2wJtAIUgs63bVzuPmIagNl DEpJLXD8jwEbAs+3Ej+28NUcRryi1SM1phu3zYAyHJGOnzx2upd+WOefOFYWn2fwj zqXSpXv9rgAyf08fzUSFZzMIHFE5685ZheimrowQj4Q2OI3Arx9NYRJAr4AWvODcB z6yl3lau14Wpv87QgHKgAIBW6beLWx/egeXLffL+q+R6q+VLKbOEMYeHQjxldt5ar Ent+oxu1yNgN3QwmlTHleDeS/a2Lzs9oo4UOtvGltcd25ys+Rd1yKgJzEK2/9DyfY gVQqHIYPDvQmufYX0A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MmlXA-1s0eac1m3q-00h2MB for ; Sun, 07 Jul 2024 12:29:44 +0200 Date: Sun, 07 Jul 2024 12:29:42 +0200 Message-Id: <87sewlze95.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #71972 X-Provags-ID: V03:K1:kKWvqOO7q5FJpZn8iTLjoR7S3D50F1mrTtS4CM9lyO1nMQbdVuR kfU14eZe+5AYL7Id8XYOzdCjnZcS7Ttfjzz53bn3N2+Mp/t5kgNijucDObvA34ayTsjCKMW HmvpoY6DWTw5zOEHtPcfwtWwcyNiy3cJ0YXYcgK2a1VZkmwA5CgRVFSrkeb9E9dNbavqppK gPS3zauLfJmUPSVQNg94w== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:aogkw7mK4rQ=;wBalScu7kXPM472wKlfAVF30Ked 7Kkuc6BtbyTCkDh3xCcx22hlwqikSNl0TkqUKXjx1OqhFxCkyW0IRPY2mjReWtgaebTcL39L5 J724L2rNsVTWYR4R/2Fnk6Ib9ya3WA4FcQsqJLkzEckYaHbtGs8rbLPwOlOJngJa2DhatQEcU L3RjOFRquAFd6ESOn2lbm/QWjmqSMrTfJ5A7CbRPwYaBLpYNO519JhAO3TscBYUSsRa6QMSLR pJM4GiSp57BuGXKVHlal2a9IFCs0nNfUqJZNFpwh79qHdBDBB10urEcW4EWjPKHyZFhuvN7cY 4Tc5eLMqDaO9EVKLUF/hxYKwkDBLrAHPzBz2TkeYN8nwzgX7x6J8nAU4Scx2VMiG3ZzJ3vB0Y 1j+PQptU3npGtOnQp+Zq368OR5FgI94fGsNbTn4Az+PoMcLL7p8jN9h8IvyslCfqwCx7vfsew UurocYSqLTxOpscRnAn1DdVxaAHHG5tGINgHsbWSRymvJi/iC5YWusTlQs2Jq5AIsVT2W4o1B TcWEyQLha/iHSvXFZsRFtC6bdzgzqAdaL76+kEgGufVN8MtUtOfKDpfphnXL7bKezbJerOTh1 Ysa7KhUjj0slArlpQE5bIdH/eR5lVk9Y03R2Bz/+GyKtCyrVQLlV+/+lbxMC8ezIyF4aiRA16 6+OXXYoi2xtX6UqMd4gTHCXHnzXq+Gg+neFwow+ar9ArOV05PNHjSrFp+izNjQ7lr2hT590q8 5dMZF5yG2D4D5VakmhVBootnasfdvjgCp/z4okCkOPEWYjwNw3ks6Y8x6SMqJcLPfkjIPg7f6 TpDMYHokI74HACCxSaYb3qW23HHlLZVF9kYf/UkDScBjs= X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 71972 + patch quit Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.38.155 listed in zen.spamhaus.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.19 listed in list.dnswl.org] X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 71972 + patch quit Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.19 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.38.155 listed in zen.spamhaus.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager tags 71972 + patch quit From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 07 11:58:20 2024 Received: (at 71972) by debbugs.gnu.org; 7 Jul 2024 15:58:20 +0000 Received: from localhost ([127.0.0.1]:49013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQUHM-0003Im-3v for submit@debbugs.gnu.org; Sun, 07 Jul 2024 11:58:20 -0400 Received: from mail-wr1-f49.google.com ([209.85.221.49]:61826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQUHK-0003IZ-8h for 71972@debbugs.gnu.org; Sun, 07 Jul 2024 11:58:19 -0400 Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-367b0cc6c65so1109623f8f.3 for <71972@debbugs.gnu.org>; Sun, 07 Jul 2024 08:58:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=z1k.dev; s=google; t=1720367828; x=1720972628; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bPw+JJFrYOBDN6HpbWJQ8fKJXKkx2NOswVbsOWeFvck=; b=cFFhkEZdbYbUYwesbmV5yST4KY2h314OXGYkQ5Q7mHm6VbC/r7UjLI0QAfJfuNJfqF mFuZXbWY0wn9Wm6lNLgDqngHYA2xhBqlC7n8L+65+N9ulUQhMN7UnjvZzS/NJ2/vovnc H1nCmazi2CqE3WkwsE+5Dr/uy6z4BqxltPCCH8uS6p4PgfrdUniz9G58EpoSO7VTlL8l ndjU1HVEzeb9uLQkGj9iB+1Kmvhdu/0qgP7vzWrXKtxnuzocNjzLy4LuPlDUeg8sBp1J 6J0HC/ipdGa5b8a3SD4h7sNpUpljFUdKtfzKGSbTNNc5TJa71F27HgYYJPUsjQm8NxI+ +M8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720367828; x=1720972628; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bPw+JJFrYOBDN6HpbWJQ8fKJXKkx2NOswVbsOWeFvck=; b=qozmE9AMnP/rO1IB7cqfrXbYpN1l51HUWCOMLk/igfCY30ZqcZYNO+7Hu3hQiecZPm Eu+hf/P52gjNSka3t4PCAksNF7MDevO2daLqdFHQv/PEsAZ3mtqIpkUqrPNvJmxXHkF5 RPBa2MFD3OFwf/9bFzfNatLhGwGN5mXjBUUMEP3mUoJlJ6OFPysHotoxKAfSaVyjey4e gICzne33Lyt//e/b/7brQ3/J062wE7VM/GpMWdXtkaAV0vhtUoXRkDWS7lZslfPEa8Jn M7x0msF1UlT5YjvyfaZIICVG1FcQR+fFYmlUhV7fGZaRYA8AUIlEmiyDtSVTVb0X+1LS iA0A== X-Gm-Message-State: AOJu0YwdyLvnYoFyZz94eZqENnhBwhnvnmrUOXbNnSJgfSBZbjHf3qvV Mc2k0dSSCI2eZR8DZcUjtIGkBPAROvBiLjaoKBmz/LB08nG+IvEz5ClfnJELd8u6QOea1or7uTh knHcdHoDWZ76Kj9V2MADrXz4qjVwR6UylxIq+njYyPJx07kePlhk= X-Google-Smtp-Source: AGHT+IH6sseO2/deCmIhX9Z8XUQDBksjbfrwLbI4jl0TpoVuMgokgKySv0VPBfyZQ7MJqIRFFUbO3zpDbDkavgqmI9Q= X-Received: by 2002:a05:6000:e90:b0:367:9224:9621 with SMTP id ffacd0b85a97d-3679dd3366bmr6567975f8f.31.1720367827922; Sun, 07 Jul 2024 08:57:07 -0700 (PDT) MIME-Version: 1.0 References: <87bk3a1s3f.fsf@gmx.de> <871q461mm7.fsf@gmx.de> <87v81hzeaq.fsf@gmx.de> In-Reply-To: <87v81hzeaq.fsf@gmx.de> From: Yikai Zhao Date: Sun, 7 Jul 2024 23:56:56 +0800 Message-ID: Subject: Re: bug#71972: 31.0.50; Tramp does not parse ipv6 address with port correctly To: Michael Albinus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 71972 Cc: 71972@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.8 (/) Thanks! I can confirm this patch fixes the issue for me. BTW, is there any chance that this patch would make it into emacs 30 releas= e? Regards, Yikai On Sun, Jul 7, 2024 at 6:28=E2=80=AFPM Michael Albinus wrote: > > Yikai Zhao writes: > > > Hi, > > Hi, > > > Thanks for the patch. However, with this patch applied to master, the r= esult is: > > > > (tramp-dissect-file-name "/ssh:[2001::abcd]#2202:/tmp/xxx") > > =3D> (tramp-file-name "ssh" nil nil #("Oldtown" 0 7 (tramp-default t)) > > "2202" "/tmp/xxx" nil) [2 times] > > > > ("oldtown" is my local hostname). Although the port is correctly > > parsed, the host is now incorrect. > > Indeed, we have a race condition. tramp-host-with-port-regexp is defined > before tramp-set-syntax has run. > > Could you, please, try the appended patch indeed? > > > Also note that in master, the correct file path for tramp.el is > > lisp/net/tramp.el, so I had to manually edit your patch before > > applying it. What version is your patch based on? Maybe the result is > > different in different versions? > > I develop in the Tramp git repo. The files are identical with the ones > in the Emacs git repo. However, there is a different directory structure. > > Best regards, Michael. > From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 07 13:47:53 2024 Received: (at 71972-done) by debbugs.gnu.org; 7 Jul 2024 17:47:54 +0000 Received: from localhost ([127.0.0.1]:49109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQVzN-00069Q-L6 for submit@debbugs.gnu.org; Sun, 07 Jul 2024 13:47:53 -0400 Received: from mout.gmx.net ([212.227.17.20]:34795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQVzK-00069B-Tm for 71972-done@debbugs.gnu.org; Sun, 07 Jul 2024 13:47:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1720374459; x=1720979259; i=michael.albinus@gmx.de; bh=xsF9gOqc95o4Zj/oWzGknmlr2vne+1uH+xC7rIRU3zI=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=BNwYWN6u7cmO2gT0xpNk6YEc2F6bsbSeUU4rcIGPEs29/LJwT31dOZUGtloRU+fS yZj6VeNi2tgyu47pUwe8adpbpzDK//s4MpZatzyV+2GQq0eGjSrpGAtQjChS+ycTZ WqOhYopLxgHkrCt3t3/XVAngLYyQDeWw6kgtJaTF/GGrqjcuqCsZAaQRdoLIbF55d 0kBI/2RUqeAxhNoWsI8xS5ttspsF7ryfiGFYUAvSiZcrAAb2GUXFcxFvM9laVABQ4 62TNJVvU2OMHZnF/RV8OX3MVUdPlnebrL4x2aHnY1Y4aO4xcVEr8wnKjXU/JgHytM ZACtz1AG0Sd98SPqYQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MvbG2-1s9G171aY2-016GTZ; Sun, 07 Jul 2024 19:47:39 +0200 From: Michael Albinus To: Yikai Zhao Subject: Re: bug#71972: 31.0.50; Tramp does not parse ipv6 address with port correctly In-Reply-To: (Yikai Zhao's message of "Sun, 7 Jul 2024 23:56:56 +0800") References: <87bk3a1s3f.fsf@gmx.de> <871q461mm7.fsf@gmx.de> <87v81hzeaq.fsf@gmx.de> Date: Sun, 07 Jul 2024 19:47:36 +0200 Message-ID: <877cdxqekn.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:fCOZrx/kcQfcmJXi6EVZivq20BQWoWSBb5wmvUyN9kTaOrVYQOf KBO0z+ScFXh5B5X6YppkA5hWNTiZOiK0u0Oj18CnWTFdUU6HWea3Gm+LKkNh6wedX6zlZkd pD1or4XvmoiizpmyW9PBIZXpFh/swQl31S0qPJBxiF0Tcw18J05zvtJft7U/uxBpsbHbNSf izNL8gLqgN+i9urWh7ZBw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:YLBijnl8YA4=;8UVd6zSRx6Xdm8miSr+yvWH66pS frzqMOAK5+WsBEG0EU6i6bSZqbud+0OMT5tDj9nQkTKSk5CjTvKulpSGZjWhlLlxh45fQLJIz 7Zm/rcjw6/WEFYMmZ8iINgxzldBXJ0XFqvuLwo00PiWq6GuJw6fimbGGq2kY9e5ALDgiaJtB5 H6C8KPP31mND5n3970W5u8XzxUxscVQOqqcD9c0BkQ9bo0Y2yygKvq1XNXwgkarcgslSYs4SL kG9Kzodb+UTz6GktdDPW+QzdYzhd+2MHcs594CKWGnBfkfWCcY8ycWnlkeUieF5QtKSydKo80 T3vvWR73aPhqQ4Zq9+Mh3bWryZVan+dpGnPfxPLN0eyvYgC1ffDU98GnV9xn+dJha3uyUcJrS WP+Z5oK6REcYH998CVmM/cJ+W+Q63zWfC+8ey61gFPwtaKBZ0BllOiSSZKUfJUVa3gtZKzWa3 52yBF3VRN+1A4wvGQQSAlLcUkL8JO2/fzRiF5gNVT6tK7cYGbMu7gXQ+2BSk/6TpshvAfOL1R O8E+hbvOmXggmu8LyQi+dgnIk6wleiDQwTFX0fQu1h2yhfrD53fWNWAECaCRtZG+Ju9AFMq5K oANlqm6dbsyYjlGonZAjbfyJNnqxpf9d+ot9J0/rmMbpuULFVVbJnGy5TTI/23pN+R0a/SNgb fQWPJsl8ezAHzuxzet8kNEKod8mQDH5ncaYRPlvCxpe5X80+9HKIMReEaf+vtgzzd54JwAZGE 8VWfq1/eCGrOyf02tAjfl/ioyMgQYNkYoeUEjBvnTn6xkTaF68051PuadDKI651Caxqvqx6jA lk3J700H3k9XKnaMGDEuEeuAZi7pkZKqAFieYbZNbpMVI= X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Version: 30.1 Yikai Zhao writes: Hi Yikai, Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.38.155 listed in zen.spamhaus.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.20 listed in list.dnswl.org] X-Debbugs-Envelope-To: 71972-done Cc: 71972-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Version: 30.1 Yikai Zhao writes: Hi Yikai, Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.20 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.38.155 listed in zen.spamhaus.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Version: 30.1 Yikai Zhao writes: Hi Yikai, > Thanks! I can confirm this patch fixes the issue for me. Thanks for the feedback. > BTW, is there any chance that this patch would make it into emacs 30 release? Yep. I've pushed the patch to the emacs-30 branch, closing this bug. > Regards, Yikai Best regards, Michael. From unknown Mon Jun 16 23:48:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 05 Aug 2024 11:24:08 +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