From unknown Sun Jun 22 04:01:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30946: 26.0.90; TRAMP cannot access some files when using hops Resent-From: Nicolas Petton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Mar 2018 08:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30946 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 30946@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15220537818774 (code B ref -1); Mon, 26 Mar 2018 08:43:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Mar 2018 08:43:01 +0000 Received: from localhost ([127.0.0.1]:53609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0NiX-0002HS-7O for submit@debbugs.gnu.org; Mon, 26 Mar 2018 04:43:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0NiV-0002HE-LC for submit@debbugs.gnu.org; Mon, 26 Mar 2018 04:43:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0NiP-0001wS-Nm for submit@debbugs.gnu.org; Mon, 26 Mar 2018 04:42:54 -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.0 required=5.0 tests=BAYES_20,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58917) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f0NiP-0001vy-Kz for submit@debbugs.gnu.org; Mon, 26 Mar 2018 04:42:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0NiO-0006ie-AW for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 04:42:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0NiL-0001ts-92 for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 04:42:52 -0400 Received: from petton.fr ([89.234.186.68]:43476) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f0NiK-0001t8-UJ for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 04:42:49 -0400 From: Nicolas Petton Date: Mon, 26 Mar 2018 10:42:43 +0200 Message-ID: <87o9jbfcsc.fsf@petton.fr> MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=petton.fr; s=mail; t=1522053765; bh=vO6I5p1/wIWioCq30LTsCh+iv5UxfM2uLmdvA59ttbo=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=HuOAEe3K7rg3jhXl+bA61HYsxhC3jRCj/uBNS/X25szeyjrew5JvHB8hjXhx1COC0GQJ91lHq5yX87/McSOvCDVaJp8lOngf8/0M2/IF+AamjGI3mk45G1he03Wk89v+7/N3EbjEjBhiXlXxA/sq2JEDC66wIXSPIyFmEq9+jOo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) 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: -4.1 (----) As discussed on the emacs-devel mailing list, when using tramp with multiple hops like the following: C-x C-f /ssh:me@example.com|sudo:localhost:/etc/deluser.conf Tramp opens an empty buffer, without showing any error message. I understand now that the second hop should be "sudo:example.com:", but it felt intuitive to use localhost, and for most files on the remote host it actually worked. From unknown Sun Jun 22 04:01:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30946: 26.0.90; TRAMP cannot access some files when using hops Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Mar 2018 14:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30946 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Nicolas Petton Cc: 30946@debbugs.gnu.org Received: via spool by 30946-submit@debbugs.gnu.org id=B30946.152233267412717 (code B ref 30946); Thu, 29 Mar 2018 14:12:01 +0000 Received: (at 30946) by debbugs.gnu.org; 29 Mar 2018 14:11:14 +0000 Received: from localhost ([127.0.0.1]:58808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1YGn-0003J2-Pp for submit@debbugs.gnu.org; Thu, 29 Mar 2018 10:11:13 -0400 Received: from mout.gmx.net ([212.227.15.19]:48715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1YGl-0003Im-G3 for 30946@debbugs.gnu.org; Thu, 29 Mar 2018 10:11:12 -0400 Received: from detlef.gmx.de ([212.86.46.81]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M9K5G-1epyjx1bF0-00CmAr; Thu, 29 Mar 2018 16:11:03 +0200 From: Michael Albinus References: <87o9jbfcsc.fsf@petton.fr> Date: Thu, 29 Mar 2018 16:11:02 +0200 In-Reply-To: <87o9jbfcsc.fsf@petton.fr> (Nicolas Petton's message of "Mon, 26 Mar 2018 10:42:43 +0200") Message-ID: <87sh8j9dl5.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:2j9IxDNGDaerWasbjISLDUzNw5yUWnLKq2JBgmu11U08avAF4GZ a+YtM2vntU/NlnQ92y5MYge2DUZgb8rJExYy0uphBGWcvM7FYXqnpJdUWNYO7e1WKstU6iH vbJI6Ky0c8TodmJQ3P5aTMFJf0fbyWulsxnjhTjccW03YIwDxzHfvgNNhiBegsYYbv2so+a M90W6RndY0Kha2F8wv9jw== X-UI-Out-Filterresults: notjunk:1;V01:K0:u8FbBo5FLq0=:AZpe5J+QxvxSy2rr1e6pKz s6VWu0mSCOQxcZErpczAFfnwe9sVfkWfd+rkwc80jC4tVDLh0zCRClcFoqzrxVsxAMKw6nK8I qf+POGLbZB/7ecaGPeclx3UOL3fwiyAKbR2noA75NGH8ThRI8RITyjKaS32UnG7snufzwAndk E/IPu7yVAdER4bWLG0mYrRqsX1k0TLQoJ6TGPyWgg8cRh5ABoDDkzHvZ9g3FdDQy1isZ4v4Kz lydr2ggbXwHwBHc01IYdLK9kusCUnUWj+iEBBwQQikb0Uxx+vzfTkUz/ugF96SP38d2GaeQZ3 wPGiP7N/NOJU8GEanVnpwIqJSY5mVbQ38uZTyvZcDwsy4O/ksRMMqrkb7y1XS0G1qoKb2n29m ux2ZPYexduPG6dKbV0pCK5VTid2m2MzFYaRzBr6UnUucNgL+NnBfV2UELr163dqu4J9XZ54Wk VfGoTT6r8D1/K/SpQIayqZGeUf8ezcsn91AzvnO4JQzTtL568XEmXXIgH5PtYw4AKMlDrJtyL NEauE0cBy2RZO+l1miIM9swn4Jc90hS/qwqlLBloWFf37JgVFSUTumt5Y7qtj6ggcvw/A0liC Bakr2eTCH77Xi/4Uzwble3g09K9FNnwx8CeNi5IsjDoygKmUJqW4gKh6fk0EDf85zymmAdrj4 pNWYeeDZlCVSUblEYrM6rBypfEH576zsWdjKsM8izRJBE9xOzzz8n44+A1qcHQaZMTCqzg4eI jtfroO2R/TuzVS8YD64eLAadd+pjZpXKM1KC5RTIU9mLaABk4pzfiKa664AcAu4KDRPoG+byU FLUdt83lkGdimsZNTywv3lQccUbbtLDWiFvMFZR4NXDdaaT9qM= X-Spam-Score: -0.7 (/) 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.7 (/) Nicolas Petton writes: Hi Nicolas, > As discussed on the emacs-devel mailing list, when using tramp with > multiple hops like the following: > > C-x C-f /ssh:me@example.com|sudo:localhost:/etc/deluser.conf > > Tramp opens an empty buffer, without showing any error message. > > I understand now that the second hop should be "sudo:example.com:", but > it felt intuitive to use localhost, and for most files on the remote > host it actually worked. I have added an additional check in Tramp for host name matches in such cases. This checks also the single hop case "/sudo:example.com:", which shall fail when "example.com" is not your local host name. There's a new test case for this, tramp-test03-file-name-host-rules. I have the feeling that this test needs too much time; maybe I'll move it to the expensive tests. Could you pls check, whether Tramp behaves now as expected? Best regards, Michael. From unknown Sun Jun 22 04:01:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30946: 26.0.90; TRAMP cannot access some files when using hops Resent-From: Nicolas Petton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Apr 2018 12:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30946 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 30946-done@debbugs.gnu.org, 30946@debbugs.gnu.org Received: via spool by 30946-submit@debbugs.gnu.org id=B30946.152275693925474 (code B ref 30946); Tue, 03 Apr 2018 12:03:02 +0000 Received: (at 30946) by debbugs.gnu.org; 3 Apr 2018 12:02:19 +0000 Received: from localhost ([127.0.0.1]:35950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3Kdm-0006cj-U5 for submit@debbugs.gnu.org; Tue, 03 Apr 2018 08:02:19 -0400 Received: from petton.fr ([89.234.186.68]:52966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3Kdk-0006cQ-TJ; Tue, 03 Apr 2018 08:02:17 -0400 From: Nicolas Petton In-Reply-To: <87sh8j9dl5.fsf@gmx.de> References: <87o9jbfcsc.fsf@petton.fr> <87sh8j9dl5.fsf@gmx.de> Date: Tue, 03 Apr 2018 14:02:05 +0200 Message-ID: <87vad8birm.fsf@petton.fr> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=petton.fr; s=mail; t=1522756930; bh=Y4zg58FzyQZP2VH7/jku2dyvHNGeJsWJ0RmThgT2meE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type; b=GOMT1bWE62Cwyoj8hzrS3zr1FIYOYgSqynC1srZkCe8P5lwuVVzXrVoTdhXxv8Fx5bqcjehmqpefcUWpPROBe0z8LYN+RWrRmyY1DOTfr28aLotNcQHIsZpih7CB0v8jhtaIkwq1GI3AkKWcH3fvwjg9N79GB6SQnMhzRsY5LxY= X-Spam-Score: -0.0 (/) 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.0 (/) --=-=-= Content-Type: text/plain Michael Albinus writes: Hi Michael, > I have added an additional check in Tramp for host name matches in such > cases. This checks also the single hop case "/sudo:example.com:", which > shall fail when "example.com" is not your local host name. > > There's a new test case for this, tramp-test03-file-name-host-rules. I > have the feeling that this test needs too much time; maybe I'll move it > to the expensive tests. > > Could you pls check, whether Tramp behaves now as expected? It works fine (and thank you for documenting it as well). Cheers, Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE1AWqLIYsVPF+7mvg6LzXhmr8+XgFAlrDbT0ACgkQ6LzXhmr8 +XjYNggAmfJj3+Lwtj5mP271exLlCYjkY/bYSG55OZbK1csuQL1QaGhOSMHxrEvd TRQmp3je0NUTIjQMvw2VbPjhXm2NYjYB8TC5kk6/lebz+4Axj6rbk2Ds1wtxDYdi 4bBkl63xJOLIoWULqGf00fTPBg8ldmmWQdQSMqzESKQMVkCET9/A5otRf19Vv+Rw GcfxlgtpvS6vjuxF6PBJx7onh11ZpZMc1rCwfe4R9JvnRQT1Ke3fuhhQYrXUMNxP So/3bqyl+M+n/mCBdhq1TU+nuYcpT8fxMNjpaMBJLHHjqd0Ogr5mT11PzH5pIau7 IuGrCMo+2sUm4Ea4HWCYoUw7ZrcJ7g== =Km+L -----END PGP SIGNATURE----- --=-=-=-- From unknown Sun Jun 22 04:01:40 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Nicolas Petton Subject: bug#30946: closed (Re: bug#30946: 26.0.90; TRAMP cannot access some files when using hops) Message-ID: References: <87vad8birm.fsf@petton.fr> <87o9jbfcsc.fsf@petton.fr> X-Gnu-PR-Message: they-closed 30946 X-Gnu-PR-Package: emacs Reply-To: 30946@debbugs.gnu.org Date: Tue, 03 Apr 2018 12:03:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1522756983-25530-1" This is a multi-part message in MIME format... ------------=_1522756983-25530-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #30946: 26.0.90; TRAMP cannot access some files when using hops which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 30946@debbugs.gnu.org. --=20 30946: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D30946 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1522756983-25530-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 30946-done) by debbugs.gnu.org; 3 Apr 2018 12:02:19 +0000 Received: from localhost ([127.0.0.1]:35948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3Kdm-0006cg-MK for submit@debbugs.gnu.org; Tue, 03 Apr 2018 08:02:18 -0400 Received: from petton.fr ([89.234.186.68]:52966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3Kdk-0006cQ-TJ; Tue, 03 Apr 2018 08:02:17 -0400 From: Nicolas Petton To: Michael Albinus Subject: Re: bug#30946: 26.0.90; TRAMP cannot access some files when using hops In-Reply-To: <87sh8j9dl5.fsf@gmx.de> References: <87o9jbfcsc.fsf@petton.fr> <87sh8j9dl5.fsf@gmx.de> Date: Tue, 03 Apr 2018 14:02:05 +0200 Message-ID: <87vad8birm.fsf@petton.fr> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=petton.fr; s=mail; t=1522756930; bh=Y4zg58FzyQZP2VH7/jku2dyvHNGeJsWJ0RmThgT2meE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type; b=GOMT1bWE62Cwyoj8hzrS3zr1FIYOYgSqynC1srZkCe8P5lwuVVzXrVoTdhXxv8Fx5bqcjehmqpefcUWpPROBe0z8LYN+RWrRmyY1DOTfr28aLotNcQHIsZpih7CB0v8jhtaIkwq1GI3AkKWcH3fvwjg9N79GB6SQnMhzRsY5LxY= X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30946-done Cc: 30946-done@debbugs.gnu.org, 30946@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.0 (/) --=-=-= Content-Type: text/plain Michael Albinus writes: Hi Michael, > I have added an additional check in Tramp for host name matches in such > cases. This checks also the single hop case "/sudo:example.com:", which > shall fail when "example.com" is not your local host name. > > There's a new test case for this, tramp-test03-file-name-host-rules. I > have the feeling that this test needs too much time; maybe I'll move it > to the expensive tests. > > Could you pls check, whether Tramp behaves now as expected? It works fine (and thank you for documenting it as well). Cheers, Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE1AWqLIYsVPF+7mvg6LzXhmr8+XgFAlrDbT0ACgkQ6LzXhmr8 +XjYNggAmfJj3+Lwtj5mP271exLlCYjkY/bYSG55OZbK1csuQL1QaGhOSMHxrEvd TRQmp3je0NUTIjQMvw2VbPjhXm2NYjYB8TC5kk6/lebz+4Axj6rbk2Ds1wtxDYdi 4bBkl63xJOLIoWULqGf00fTPBg8ldmmWQdQSMqzESKQMVkCET9/A5otRf19Vv+Rw GcfxlgtpvS6vjuxF6PBJx7onh11ZpZMc1rCwfe4R9JvnRQT1Ke3fuhhQYrXUMNxP So/3bqyl+M+n/mCBdhq1TU+nuYcpT8fxMNjpaMBJLHHjqd0Ogr5mT11PzH5pIau7 IuGrCMo+2sUm4Ea4HWCYoUw7ZrcJ7g== =Km+L -----END PGP SIGNATURE----- --=-=-=-- ------------=_1522756983-25530-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Mar 2018 08:43:01 +0000 Received: from localhost ([127.0.0.1]:53609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0NiX-0002HS-7O for submit@debbugs.gnu.org; Mon, 26 Mar 2018 04:43:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0NiV-0002HE-LC for submit@debbugs.gnu.org; Mon, 26 Mar 2018 04:43:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0NiP-0001wS-Nm for submit@debbugs.gnu.org; Mon, 26 Mar 2018 04:42:54 -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.0 required=5.0 tests=BAYES_20,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58917) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f0NiP-0001vy-Kz for submit@debbugs.gnu.org; Mon, 26 Mar 2018 04:42:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0NiO-0006ie-AW for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 04:42:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0NiL-0001ts-92 for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 04:42:52 -0400 Received: from petton.fr ([89.234.186.68]:43476) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f0NiK-0001t8-UJ for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 04:42:49 -0400 From: Nicolas Petton To: bug-gnu-emacs@gnu.org Subject: 26.0.90; TRAMP cannot access some files when using hops Date: Mon, 26 Mar 2018 10:42:43 +0200 Message-ID: <87o9jbfcsc.fsf@petton.fr> MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=petton.fr; s=mail; t=1522053765; bh=vO6I5p1/wIWioCq30LTsCh+iv5UxfM2uLmdvA59ttbo=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=HuOAEe3K7rg3jhXl+bA61HYsxhC3jRCj/uBNS/X25szeyjrew5JvHB8hjXhx1COC0GQJ91lHq5yX87/McSOvCDVaJp8lOngf8/0M2/IF+AamjGI3mk45G1he03Wk89v+7/N3EbjEjBhiXlXxA/sq2JEDC66wIXSPIyFmEq9+jOo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.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: -4.1 (----) As discussed on the emacs-devel mailing list, when using tramp with multiple hops like the following: C-x C-f /ssh:me@example.com|sudo:localhost:/etc/deluser.conf Tramp opens an empty buffer, without showing any error message. I understand now that the second hop should be "sudo:example.com:", but it felt intuitive to use localhost, and for most files on the remote host it actually worked. ------------=_1522756983-25530-1-- From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 03 08:10:36 2018 Received: (at control) by debbugs.gnu.org; 3 Apr 2018 12:10:37 +0000 Received: from localhost ([127.0.0.1]:35958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3Klo-0006og-Nu for submit@debbugs.gnu.org; Tue, 03 Apr 2018 08:10:36 -0400 Received: from mout.gmx.net ([212.227.17.20]:36387) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3Klm-0006oU-MM for control@debbugs.gnu.org; Tue, 03 Apr 2018 08:10:35 -0400 Received: from detlef.gmx.de ([79.140.125.59]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LjvV7-1eWBoL1sVt-00bpsI for ; Tue, 03 Apr 2018 14:10:28 +0200 Date: Tue, 03 Apr 2018 14:10:27 +0200 Message-Id: <87tvssa3t8.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #30946 X-Provags-ID: V03:K0:7C++7Td0xhPjG9NQ/lAMBdFD1ApkiOsd632htkKJDbHl0rovOFY ccYQk3yLgAOoZkz4lWS7SNCnCX3kR/TTFCOpl3wjoDxy82Ko5lfZgP0/GSIAes+OMIrzKSr Mi1RzmkAHXh9U2+f0OiedXh78514Edg5VEFFWewzhXnrqliWvuOxPIN0shbXlOdsh1oYEyB tu6V9OqrgSMJz3ufXu0WA== X-UI-Out-Filterresults: notjunk:1;V01:K0:QmuJ6iEdsac=:dbPBdMYshR/UKYtp9mpqMX wLCKZ1Dd4Uy7F1JFw0/QqOZRu5oAzFk0iQohqAuzCRSWTjsRsR/i2PsxP4P5E/gfQm/1xk3n5 t4lRcQwEIvm05NABNTXFDHNTN0ek9JTIT7cDKSzv8MpIFeFJJyuegN/S7EUUgNG2nGYOlKIcK pas8qU7O0UqAdf7tr4tyh0OEVufa44TzeX0g5ljxMEh6GLV//JwMMpmrGVRj1N9nDbqPreHZl jJmsEXBBHEKwBApTOlhUBFPXn7B9M5osFQ3EbYbYx+6tRIAwAkvqpqO10RviQzzpYyciU3KBP l+rQxNSwzxbiFPaqX2cRfPRhnNCULfZZUey+RR4sk6wAVjmpeFY+jiqHaOpVg2NZHZh5YC5gC wAF+mCcHJtireFoSnNW3eWqLrltU9dHA2IxCqtcrM/+HAtWZMS0v1L2R23sGqFyGWa11LR5UT FLxRuOLd3UvVUgYIlIcHdLuAF/FXp2XALp5eWnv32HWCdfBC3WwN6FyFsbR1ZbzNMXv9zpT6t gKHDvvlxDXcpevq8JQYPVoj5ayoyrAev6yJHGQWuoW/Fsdu70cVIUPZfgzgu26GwZIsXE6Hii wHlKahBfzjrFuNfyIiKx6YbkWqPqDUJV7agvWNCu1Zhw4hMTgEXC9MieJ2C1bObQ3QVnH/VAA nTpiYScQDGJIAQjq5aCs3JPg5+yTO1kI5xgbre4ee0nM70aX2IOkqIijWzrE/esRLOOXbQQaJ c/uk4uEy2FUB1AoiG1WQXmLW82WEfHSLHOTJSvPuhopz+gfSqGosshTbT4aJwOM5lt5V5Lozg 3x7JtxCfjr/S2Q+SmcqUL6hw8VpRA== X-Spam-Score: -0.7 (/) 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: -0.7 (/) tags 30946 fixed close 30946 27.1 From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 30 16:53:07 2018 Received: (at control) by debbugs.gnu.org; 30 Dec 2018 21:53:07 +0000 Received: from localhost ([127.0.0.1]:42666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdj19-00071o-Cn for submit@debbugs.gnu.org; Sun, 30 Dec 2018 16:53:07 -0500 Received: from smtp-1.orcon.net.nz ([60.234.4.34]:49458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdj16-00071Z-UV for control@debbugs.gnu.org; Sun, 30 Dec 2018 16:53:05 -0500 Received: from [150.107.172.65] (port=36149 helo=[192.168.20.103]) by smtp-1.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1gdj14-0000yk-WC for control@debbugs.gnu.org; Mon, 31 Dec 2018 10:53:03 +1300 Subject: Re: Archived problem report bug#30946 (bug#30946: 26.0.90; TRAMP cannot access some files when using hops) To: control@debbugs.gnu.org References: <6e181a50-452c-0e8b-ae5a-0746f64a6dfb@orcon.net.nz> <87o9jbfcsc.fsf@petton.fr> From: Phil Sainty Message-ID: <63cb1c77-da6d-c0cd-287f-4cc1747a8e86@orcon.net.nz> Date: Mon, 31 Dec 2018 10:53:02 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: -0.7 (/) 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.7 (-) unarchive 30946 From unknown Sun Jun 22 04:01:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30946: 26.0.90; TRAMP cannot access some files when using hops Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Dec 2018 22:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30946 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: 30946@debbugs.gnu.org Received: via spool by 30946-submit@debbugs.gnu.org id=B30946.1546207310997 (code B ref 30946); Sun, 30 Dec 2018 22:02:02 +0000 Received: (at 30946) by debbugs.gnu.org; 30 Dec 2018 22:01:50 +0000 Received: from localhost ([127.0.0.1]:42669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdj9a-0000Ff-9O for submit@debbugs.gnu.org; Sun, 30 Dec 2018 17:01:50 -0500 Received: from smtp-1.orcon.net.nz ([60.234.4.34]:42868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdj9Y-0000De-Dx for 30946@debbugs.gnu.org; Sun, 30 Dec 2018 17:01:49 -0500 Received: from [150.107.172.65] (port=44722 helo=[192.168.20.103]) by smtp-1.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1gdj9W-0001NG-DB for 30946@debbugs.gnu.org; Mon, 31 Dec 2018 11:01:47 +1300 From: Phil Sainty References: <87o9jbfcsc.fsf@petton.fr> <6e181a50-452c-0e8b-ae5a-0746f64a6dfb@orcon.net.nz> Message-ID: Date: Mon, 31 Dec 2018 11:01:46 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <6e181a50-452c-0e8b-ae5a-0746f64a6dfb@orcon.net.nz> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: -0.7 (/) 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.7 (-) (resending this to just the bug address, after unarchiving) On 26/03/18 9:42 PM, Nicolas Petton wrote: > As discussed on the emacs-devel mailing list, when using tramp with > multiple hops like the following: > > C-x C-f /ssh:me@example.com|sudo:localhost:/etc/deluser.conf > > Tramp opens an empty buffer, without showing any error message. > > I understand now that the second hop should be "sudo:example.com:", > but it felt intuitive to use localhost, and for most files on the > remote host it actually worked. I'd suspect that https://stackoverflow.com/a/16408592/324105 explains why it 'worked': > The trap here is that sudo:: does actually appear to work -- however > when you do that the HOST for the dynamic proxy entry will be the > hostname you originated from rather than the host you connected > to. This will not only look confusing (as the wrong host will be > displayed in the file paths), but it will also mean that any > subsequent attempt to use sudo:: on your localhost will instead be > proxied to the remote server! i.e. /ssh:me@example.com|sudo:localhost was previously creating a proxy that said that when you request files as root@localhost (for *any* tramp method!) it should proxy via "/ssh:me@example.com:". The sudo method didn't actually need or care about the specified host, so that "worked" -- but the proxy you'd created was then a problem waiting to bite you. Ooohh. Michael, that actually still remains a problem in the new version. Despite the error message, the unintended proxy is still created, and hence can still break things. i.e. I try to visit: /ssh:me@example.com|sudo:localhost I get the new error message: Host name ‘localhost’ does not match ‘^example.com$’ but I *also* get a new proxy entry: ("localhost" "root" "/ssh:me@example.com:") So when I then visit: /sudo:localhost: I get the error message: Host name ‘localhost’ does not match ‘^example.com$’ etc, etc... Conversely, it seems that the "::" case has been attended to so that it now transparently DWIM ? i.e. When I try /ssh:me@example.com|sudo:: I get a proxy entry of: ("example.com" "root" "/ssh:me@example.com:") whereas in earlier versions of Emacs I get the undesirable: ("" "root" "/ssh:me@example.com:") Where is my local hostname. That's excellent, and possibly also deserves a note in the NEWS? Currently it reads: *** For some connection methods, like "su" or "sudo", the host name in ad-hoc multi-hop file names must match the previous hop. We could perhaps append: If the hostname is left empty (e.g. "sudo::") then the host from the previous hop is used automatically. cheers, -Phil p.s. I find the new error slightly confusing to dismiss. It's not entirely obvious how to get back to the prompt. Not a big problem, as ideally people don't run into it at all, but I just thought I'd mention it. The error sticks around persistently until I type C-g, at which point I get a new error "Tramp: Opening connection for root@localhost using sudo...failed". That error also sticks around for a couple of seconds, which is long enough to make one suspect that it also needs to be dismissed with C-g -- which will actually exit the minibuffer entirely, meaning you can't simply edit the incorrect path to fix the problem, but must start over. (So the correct sequence is C-g and then either wait a couple of seconds, or just start typing blindly.) It would be nice if that was a bit smoother -- but again, I don't think this is a significant issue in reality, so I wouldn't worry about it unless you think it's easy to deal with. From unknown Sun Jun 22 04:01:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30946: 26.0.90; TRAMP cannot access some files when using hops Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Dec 2018 11:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30946 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Phil Sainty Cc: 30946@debbugs.gnu.org Received: via spool by 30946-submit@debbugs.gnu.org id=B30946.154625522029099 (code B ref 30946); Mon, 31 Dec 2018 11:21:02 +0000 Received: (at 30946) by debbugs.gnu.org; 31 Dec 2018 11:20:20 +0000 Received: from localhost ([127.0.0.1]:42827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdvcK-0007ZH-4L for submit@debbugs.gnu.org; Mon, 31 Dec 2018 06:20:20 -0500 Received: from mout.gmx.net ([212.227.15.19]:56311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdvcI-0007Z4-UW for 30946@debbugs.gnu.org; Mon, 31 Dec 2018 06:20:19 -0500 Received: from detlef.gmx.de ([217.70.140.229]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LnfuZ-1hGXUX1fvr-00hte4; Mon, 31 Dec 2018 12:20:06 +0100 From: Michael Albinus References: <87o9jbfcsc.fsf@petton.fr> <6e181a50-452c-0e8b-ae5a-0746f64a6dfb@orcon.net.nz> Date: Mon, 31 Dec 2018 12:20:04 +0100 In-Reply-To: (Phil Sainty's message of "Mon, 31 Dec 2018 11:01:46 +1300") Message-ID: <877efqdjtn.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:45cSgov7IWj5vwVbKwGtzW44SUK7xvTHPLoicjKA6A2rpX4O0TI +ZokIOKBN7owkf7BMu+LPCUOeMuTlpPDJCnX6bKxfWB9H5cI5cbQo3pB+FoLEXHSD1R5Jqp L4kL6ySETvXZmjdeAHMSqFMShADF8bVnaxeDGjCvCIb5mpIYjZamBMDm/dMUKcTKx0kdA0T vJwikTeGDWUN7njWutdUA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:iELYjYXBHsY=:fEXpuvQHuz0WTL7jjIsfVZ 9/wjeE8xjM9G6Sbg4YpdJxw6iwcKlqDdqV4TvAdZeTZbf6rpbTKPPbLVsQkdB46ZdYBWfbgu4 Ry7xfMNTV3FrFZWsoYUAZZXvj9rdo8g82475dP3H4EcRaO6QWMKy7R8rAfRkJL/6NLotWDk7e tg+aut/lu1vAbKoQLgS3Mifx074A9wgOajNhfLtAqy1c0AralXlfHTAhEFWlQ4PBi1t7QzUZl oPWJQsC5Xlp9mtd/qcs2rgjKx44Uyv0xXZ1PYaaPdactZ+RvjfsOU17OTcoww0urid18VDOLj AKB+dLg1Z0Ty+UTNdDY1Klv1KxYKIdX6Pv83VqEX7axrtpz3KiZR/1sMzoHJu08AnTBuoDDNI ybZYzPwuaOXqioARsR5bbiadJ4cob9GihiNHKuQ+p0wy24updOJRfu2v2QfQtcTaCgYiaxA/x vAqgypO5YGb+1qelH47DKMDk4vxZja2O2oKlHVI0xeXuqoczICQgtk966OLJbESBGY1SJlFqu 4Z3yHAL9hpURks5XznAfpFk6/X/26i90KPEAtberr7H3iY0BQWGrsRRqy1JmH4b5HJ4dZ9zAo BhsZc66Qw14ZBudIzooDX3vHUb7VHHBSuwv3QnHA2kBtT9C2NQwaVyZiSv9AsdYoaxXh1zW4d ZV0VcThyZowKNd1Wy5AtkMiLnoiDqqALvd0Z68XPJnFjtPytOFBeAuOU2XkFgzxoGtAMr3FF6 t3P9QJB/AH6Rl4FVOm3+Po8XDO0vs0l9u+F6OmxSBJub36QtjK4bzM1TD20enybJz/xyNMBQY lNSaebvj87pJsu7NSofwtvN+KIIqWT0yzWIVD04XMbwLLnXBlGD6jQA+D00RZpp1fFV606Oo+ p5G+1DJJbAwyZlRBPkKVHCoWx2QvcyyMYAIzgrdbF5I/Wty1xsuIfrn3Zuq6RlJbGR4lLqade 1kbiTQHLPOA== X-Spam-Score: -0.7 (/) 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.7 (-) Phil Sainty writes: Hi Phil, > i.e. /ssh:me@example.com|sudo:localhost was previously creating a proxy > that said that when you request files as root@localhost (for *any* > tramp method!) it should proxy via "/ssh:me@example.com:". The sudo > method didn't actually need or care about the specified host, so that > "worked" -- but the proxy you'd created was then a problem waiting to > bite you. > > Ooohh. > > Michael, that actually still remains a problem in the new version. > > Despite the error message, the unintended proxy is still created, > and hence can still break things. > > i.e. I try to visit: > > /ssh:me@example.com|sudo:localhost > > I get the new error message: > > Host name =E2=80=98localhost=E2=80=99 does not match =E2=80=98^example.co= m$=E2=80=99 > > but I *also* get a new proxy entry: > > ("localhost" "root" "/ssh:me@example.com:") > > So when I then visit: > > /sudo:localhost: > > I get the error message: > > Host name =E2=80=98localhost=E2=80=99 does not match =E2=80=98^example.co= m$=E2=80=99 > > etc, etc... Ad-hoc proxy definitions are removed by "M-x tramp-cleanup-all-connections". I've added a respective hint to the manual. > Conversely, it seems that the "::" case has been attended to so that > it now transparently DWIM ? > > i.e. When I try /ssh:me@example.com|sudo:: I get a proxy entry of: > ("example.com" "root" "/ssh:me@example.com:") Yes. This was already documented in the Tramp manual. > whereas in earlier versions of Emacs I get the undesirable: > ("" "root" "/ssh:me@example.com:") > Where is my local hostname. > > That's excellent, and possibly also deserves a note in the NEWS? The previous behaviour was a bug. I've corrected it. Bugs don't need to be mentioned in etc/NEWS. I've extended the NEWS entry to describe the new default host name behavior. > cheers, > -Phil > > p.s. I find the new error slightly confusing to dismiss. It's not > entirely obvious how to get back to the prompt. Not a big problem, > as ideally people don't run into it at all, but I just thought I'd > mention it. > > The error sticks around persistently until I type C-g, at which point > I get a new error "Tramp: Opening connection for root@localhost using > sudo...failed". That error also sticks around for a couple of seconds, > which is long enough to make one suspect that it also needs to be > dismissed with C-g -- which will actually exit the minibuffer entirely, > meaning you can't simply edit the incorrect path to fix the problem, > but must start over. > > (So the correct sequence is C-g and then either wait a couple of > seconds, or just start typing blindly.) > > It would be nice if that was a bit smoother -- but again, I don't > think this is a significant issue in reality, so I wouldn't worry > about it unless you think it's easy to deal with. See above. Some "C-g" in a raw (let's say, two or three times) plus "M-x tramp-cleanup-all-connections" shall be sufficient. Best regards, Michael. From unknown Sun Jun 22 04:01:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30946: 26.0.90; TRAMP cannot access some files when using hops Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Dec 2018 12:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30946 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Michael Albinus Cc: 30946@debbugs.gnu.org Received: via spool by 30946-submit@debbugs.gnu.org id=B30946.154626006111833 (code B ref 30946); Mon, 31 Dec 2018 12:41:01 +0000 Received: (at 30946) by debbugs.gnu.org; 31 Dec 2018 12:41:01 +0000 Received: from localhost ([127.0.0.1]:42854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdwsN-00034l-Io for submit@debbugs.gnu.org; Mon, 31 Dec 2018 07:41:01 -0500 Received: from smtp-1.orcon.net.nz ([60.234.4.34]:57476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdwsL-00034b-4T for 30946@debbugs.gnu.org; Mon, 31 Dec 2018 07:40:58 -0500 Received: from [150.107.172.17] (port=36841 helo=[192.168.20.103]) by smtp-1.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1gdwsI-0005wS-U2; Tue, 01 Jan 2019 01:40:55 +1300 References: <87o9jbfcsc.fsf@petton.fr> <6e181a50-452c-0e8b-ae5a-0746f64a6dfb@orcon.net.nz> <877efqdjtn.fsf@gmx.de> From: Phil Sainty Message-ID: Date: Tue, 1 Jan 2019 01:40:54 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <877efqdjtn.fsf@gmx.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: -0.7 (/) 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.7 (-) > Ad-hoc proxy definitions are removed by > "M-x tramp-cleanup-all-connections". > I've added a respective hint to the manual. Right; but given that there is now some form of error detection in the case when a clearly-incorrect hostname is given for the sudo/su methods, would it not be very sensible to also ensure that a proxy matching the incorrect hostname is not added? As it is, the error is 'caught' but the unwanted behaviour silently happens anyway, which seems bad to me; especially when any subsequent use of that proxy is likely to be pretty confounding. In the worst case someone can end up unwittingly connecting to a different machine than the one they intended, at which point they could inadvertently cause themselves real problems. Sure, it's ultimately their mistake; but when that mistake was actually detected at the outset, it seems a shame not to deal with it then. -Phil From unknown Sun Jun 22 04:01:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30946: 26.0.90; TRAMP cannot access some files when using hops In-Reply-To: <87o9jbfcsc.fsf@petton.fr> Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Dec 2018 14:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30946 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Phil Sainty Cc: 30946@debbugs.gnu.org Received: via spool by 30946-submit@debbugs.gnu.org id=B30946.154626561220184 (code B ref 30946); Mon, 31 Dec 2018 14:14:01 +0000 Received: (at 30946) by debbugs.gnu.org; 31 Dec 2018 14:13:32 +0000 Received: from localhost ([127.0.0.1]:42899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdyJw-0005FU-5k for submit@debbugs.gnu.org; Mon, 31 Dec 2018 09:13:32 -0500 Received: from mout.gmx.net ([212.227.17.21]:60075) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdyJu-0005FH-AK for 30946@debbugs.gnu.org; Mon, 31 Dec 2018 09:13:30 -0500 Received: from detlef.gmx.de ([217.70.140.229]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MQeET-1glzZQ0Vzh-00TyOa; Mon, 31 Dec 2018 15:13:17 +0100 From: Michael Albinus References: <87o9jbfcsc.fsf@petton.fr> <6e181a50-452c-0e8b-ae5a-0746f64a6dfb@orcon.net.nz> <877efqdjtn.fsf@gmx.de> Date: Mon, 31 Dec 2018 15:13:15 +0100 Message-ID: <87bm51bx8k.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:gGLK7hqRwXPdfl3uPYdgBIekzCugQbDipP1gFFCtvuE2mX2bswj zXLCNJeKaTskRqiJqGYUT1aaA8mDoVvF3qZKbCZtLxxJpnYJavnd9WObdb063qJfKeT1o8h EWmtds3ltE17aStIhiR0WY2wusagbTuYkJGSn9WfrkKX3sGnghW7DunhpvcFcpcLOShDwRl DXqsDmMmQLutM3sMBCmTw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:urB4XjX+sH4=:Skrrx8F2bI5mVpAmB15aVJ cxpabygzEXlDS5w39fus+ySpxzHI8BTy7f3XAXNZYPgCNElqAkyGKTUs4ulRThc8xy3omEmeh ViZXt5jnKuxVrF3Y3fPnNbGM3h60BVvS1RbmsGu89GLE5RA150bJzHrTXR6Hc/wfy5xkh32o9 bpTYVm5X6p2HI9c6mpxfnVfsS5rMohhf2qFiHUjX+WKNUxomVtsuMziDKhpY15zlxcc/DnIVB U9dYQlRvh2f1UvbkE1deh4uUVbd+NaQBO/VvKWU5xWj9tD1A639zT8HcGvK2gq5XktraQOBni sWdaUyoSpt5IXgZgptmtT1sGzWn9kSKU8QWKYL1NDuAm4p+2DAucQbeUUJOH9jt7P86Mf3vii 45zlBasV7yD5oneDNHCB34tJ78EHiAtNxK8oy7SEHG1o7V4P1QQSOyfmAmRjhPl7ukYRv3Gvt AJB7CzpdFmBWczp9xzNPmkGosqCdfQVXdmPkpf6D93scfR3uOSuvvjNlr8a7VKrWKp5hX/40P OIO1AVaYbcV2rCYpo3K4NYx/PEn6ONLOI2FZVA3EC2z6TCXNbgB5PHpVisaLv1nZG37bI3ms2 8v9+LsZZRLDy7eBrYw4LwPi4wQt3t1APUoRYE9/AlAC0bUA11cbLyUwF+9aW/ZegX/2lV89qi y8Q8AphYhpZ0Hw8g0yyGpPvti8zPjCMIySl07lXqyl/NYiYEDe+dez9JYT2aa139csQR0V3Ih MymrIaHsDcd3VJpdemnMe+8LpmNXapp/8UslqHsU9xGeuDU1fviGYb1uRmQR4mrNHRZrXB8Dk Zf8WfRQ13OC2MZsld4VfBY8lOH1bv9B3vpTL4om4+cAvC4WVkSOakLi9FuztQy5TzlZzIJ2Ci OSmGnR8yVTcGI/vgD/mDRUSqX8sEmehVgUAPwuuut/VG5S7dVzPVDU7edgUUy1jX4PuwcGQ1e pjmIz+LFGVg== X-Spam-Score: -0.7 (/) 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.7 (-) Phil Sainty writes: Hi Phil, >> Ad-hoc proxy definitions are removed by >> "M-x tramp-cleanup-all-connections". >> I've added a respective hint to the manual. > > Right; but given that there is now some form of error detection in the > case when a clearly-incorrect hostname is given for the sudo/su methods, > would it not be very sensible to also ensure that a proxy matching the > incorrect hostname is not added? I've pushed a fix for this to the master branch; could you pls check? > -Phil Best regards, Michael. From unknown Sun Jun 22 04:01:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30946: 26.0.90; TRAMP cannot access some files when using hops Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Dec 2018 21:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30946 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Michael Albinus Cc: 30946-done@debbugs.gnu.org Received: via spool by 30946-done@debbugs.gnu.org id=D30946.15462929176101 (code D ref 30946); Mon, 31 Dec 2018 21:49:01 +0000 Received: (at 30946-done) by debbugs.gnu.org; 31 Dec 2018 21:48:37 +0000 Received: from localhost ([127.0.0.1]:43695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ge5QK-0001aK-HG for submit@debbugs.gnu.org; Mon, 31 Dec 2018 16:48:36 -0500 Received: from smtp-1.orcon.net.nz ([60.234.4.34]:54831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ge5QH-0001aB-U7 for 30946-done@debbugs.gnu.org; Mon, 31 Dec 2018 16:48:34 -0500 Received: from [150.107.172.17] (port=23534 helo=[192.168.20.103]) by smtp-1.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1ge5QE-0001pr-DX; Tue, 01 Jan 2019 10:48:31 +1300 References: <87o9jbfcsc.fsf@petton.fr> <6e181a50-452c-0e8b-ae5a-0746f64a6dfb@orcon.net.nz> <877efqdjtn.fsf@gmx.de> <87bm51bx8k.fsf@gmx.de> From: Phil Sainty Message-ID: Date: Tue, 1 Jan 2019 10:48:29 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <87bm51bx8k.fsf@gmx.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: -0.7 (/) 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.7 (-) Hi Michael, On 1/01/19 3:13 AM, Michael Albinus wrote: > I've pushed a fix for this to the master branch; could you pls check? Yes, the tramp master branch works nicely! http://git.savannah.gnu.org/cgit/tramp.git/commit/?id=1dbd930da8 does make me wonder whether it would be good for tramp-user-error to check whether saved-tdpa is bound, and handle the rollback itself, so the code which sets the error doesn't need to? I assume there are other error cases where the rollback doesn't happen and doesn't *need* to happen; but if it's harmless to do so (which I have no idea about), then "roll back any new proxies in the face of an error" might well be a sane behaviour, and might possibly prevent undesirable proxies being added in other situations (speculating). I'm re-closing this bug in any case. Thank you for fixing this. -Phil From unknown Sun Jun 22 04:01:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30946: 26.0.90; TRAMP cannot access some files when using hops Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Jan 2019 11:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30946 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Phil Sainty Cc: 30946-done@debbugs.gnu.org Received: via spool by 30946-done@debbugs.gnu.org id=D30946.154634367028174 (code D ref 30946); Tue, 01 Jan 2019 11:55:01 +0000 Received: (at 30946-done) by debbugs.gnu.org; 1 Jan 2019 11:54:30 +0000 Received: from localhost ([127.0.0.1]:43796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1geIcv-0007KM-NJ for submit@debbugs.gnu.org; Tue, 01 Jan 2019 06:54:29 -0500 Received: from mout.gmx.net ([212.227.17.20]:53403) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1geIcs-0007K4-UN for 30946-done@debbugs.gnu.org; Tue, 01 Jan 2019 06:54:28 -0500 Received: from detlef.gmx.de ([217.70.140.229]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LmOLO-1hD5PQ1A1a-00Zzpt; Tue, 01 Jan 2019 12:54:14 +0100 From: Michael Albinus References: <87o9jbfcsc.fsf@petton.fr> <6e181a50-452c-0e8b-ae5a-0746f64a6dfb@orcon.net.nz> <877efqdjtn.fsf@gmx.de> <87bm51bx8k.fsf@gmx.de> Date: Tue, 01 Jan 2019 12:54:12 +0100 In-Reply-To: (Phil Sainty's message of "Tue, 1 Jan 2019 10:48:29 +1300") Message-ID: <87sgyc3863.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:br6GY48qUNDqw3kfRYjTXiiEYaH3iO0Sg84QsggWSBZTgQ8FpEQ 1A9NTho6tw+BG5YyEd0UHseUePeXRiT8ZNnwXHoSEhz5ZWae3yGfEGNihYmQ234T0VXu3Ob 82ccYDP8+i7CS+IeaeRAnsOcOP51ZXXmbUPE/HbH4GpcLbc61ZDXI5LlcG7wiwZjf38QeQ1 0EGoUQ8s6tuTMxL3abfUw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:OSnuQjXa1Qs=:M6eRMx+7KJQC52OAl0exJm KVj95apkxkRJTSxVrzabSyh8W/x6pB4xl0CAATqmIa8rvzECIs4OZkTJUk5ho/pLPc+RZKxoE e1p3MXw0C/DkRK6gotbttBaTW8f6Ls1czeSTKSyCrWEk/Q/yhQZE7VJlfjHcDSV6asUs3hlrW 1ph6t38nvuLsmv8xqvpSOHrcLq9PoaJ3jidajWyamrGJxQysNg88+VgunZ5k4Me5ZxHeMtvF1 S+3zzM070DImYQUd8PLInfMPgu4UTdROH+0n90G6ZCk/KnRYCW1DMd+U5PmudpjFUH5jlHX4v qEwClOpzOKF/htdgHQpMjUcHRnPR5mJQ4iQtlSVWy1v6EQ7i2Lb8gJt5GFJ72QXsBtQsi1iXB OcqmVZkCXaWF22740LzBX53rzFeXLVO/qgeC3KhiCC/CidLTBXbKJlcqlQb4P/k66xgQb7i4n 915fEu/xupr6U8zAKUGYPTdcMwwXX7s5iNWOLIqbv6PpRlQhg47ThH2N3a+a02U0gA628etT5 +aH1uP/h94I+WJeTTKAsHi6O4jLxHWAHP+5Rdb74EyBZ+eMUiIQ44dL44FleiaXLUBOQMdgJm Wr3X5SsHtWx9L29xYpS/8YyB7YCxsEUTy7VPD82DbUtc9iszcUhlHhy7Y1WN7npne6QG/VYJA 6BgESqJwnIccnSTbIDqnOo44/Hn0TVKkCJhT3PLfHv4545Y7PozXXl4pUKV4arCLp9BpW7AI7 fNvv/fqusGIrt7NUanJy8IAJiz03zphD9HW3Y1EhO0I3KtQ+T65yzNKSCDyl52XAL4cKRkpjf wQ/Xa2LQMb0S6qmudTi6Ct3bB8BmpYum75pUfkK6ph5Dev7YAj1ZPG+JqEb51v8UoiwtzoTLu Cwh0G0OS803LSbWuYGHyS99zbUa2TJRt+t/fHz6ZYax+8VVTQnnSUU3VLUV/ZBLyzRKFsmU6u tOfGj5s1Mbw== X-Spam-Score: -0.7 (/) 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.7 (-) Phil Sainty writes: > Hi Michael, Hi Phil, > http://git.savannah.gnu.org/cgit/tramp.git/commit/?id=1dbd930da8 does > make me wonder whether it would be good for tramp-user-error to check > whether saved-tdpa is bound, and handle the rollback itself, so the > code which sets the error doesn't need to? `tramp-user-error' is Tramp's counterpart to `user-error'. No rollback, or something else. > -Phil Best regards, Michael.