GNU bug report logs - #76159
[PATCH] Precision on Ange FTP parsing of .authinfo file

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Manuel Giraud <manuel@HIDDEN>; Keywords: patch notabug; Done: Michael Albinus <michael.albinus@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) notabug. Request was from Michael Albinus <michael.albinus@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 76159-done <at> debbugs.gnu.org:


Received: (at 76159-done) by debbugs.gnu.org; 10 Feb 2025 15:44:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 10 10:44:31 2025
Received: from localhost ([127.0.0.1]:52019 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1thVxX-0006vX-8F
	for submit <at> debbugs.gnu.org; Mon, 10 Feb 2025 10:44:31 -0500
Received: from mout.gmx.net ([212.227.15.19]:53927)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael.albinus@HIDDEN>)
 id 1thVxT-0006vF-Of
 for 76159-done <at> debbugs.gnu.org; Mon, 10 Feb 2025 10:44:28 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de;
 s=s31663417; t=1739202261; x=1739807061; i=michael.albinus@HIDDEN;
 bh=FefztIkbdmSWmUfSkfyoh4xPN7zJ0YZsnYvf6xhkN94=;
 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=Lzt9/JxWegVUG2GRl0Jc4ZLmPZBf/xHcwi2Mcj+/ARhUU6kK2c/tv3z4nfxRY8kj
 RWB1Y9BS90Wgj5Uk9tFDviyK8PuwBDz5Z50bXyePyCJJ7PWrOD24tA664MssR6pXY
 /fejt0PjEEj6j1LjQhnAXSZhZbM8KLI4NckzQLyjaw72Oww9bzw7un2N4sBu58kWs
 nxJKc2/TGPI4nyKeLDxnDEoziszkmc0W1A3gH1Tmeulm5+mrOJ2/MVPBU8tWGs1mu
 xUp6o8Bua+J227rwlrrQ4NuZyzwv32tadK8GXKaKHBZliNVCpsNJjP1P/1D2bwvGH
 ap6tmTq5o3hZu65LuQ==
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 1Mqs0R-1t4Laf3V9V-00lDia; Mon, 10
 Feb 2025 16:44:20 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#76159: [PATCH] Precision on Ange FTP parsing of .authinfo file
In-Reply-To: <87a5atak9o.fsf@HIDDEN> (Manuel Giraud's message of "Mon, 
 10 Feb 2025 16:31:47 +0100")
References: <87wmdzt9in.fsf@HIDDEN> <878qqff3zw.fsf@HIDDEN>
 <875xlic3uk.fsf@HIDDEN> <874j12dnyl.fsf@HIDDEN>
 <87a5atak9o.fsf@HIDDEN>
Date: Mon, 10 Feb 2025 16:44:20 +0100
Message-ID: <87msetby97.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:61i8JJDoK3MIbsxvTSpZACU4JMeeYQ4qzXhfm1Jji4vR4qO6j04
 9wjXRyiArxJuHQX40pd98V4lq5/qczyYCDxi59Sl4FC5VXaH5eRRT/vVWnJHob94CQeHGOR
 NSPXA2rdK57Sk0X+oUvhlGcrM+4mZW1a3YJ6hymxhEP/XYjwoT7m+2bYACoVudK6vrQGeQU
 RUH/O6ISa/gRItgOHgmwQ==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:I7Kv/lwGusY=;VN4zH8dwPH7FtO2HoREsXhdJJuD
 p/dJ32XKSiy2PnLUwUHNrVchUVcC+0x+KqhUhQhA2eyQGpdyKBjrngdFgosrv9GS7VaySMd8z
 4IUimnhRvZxePGfTYvWJ3P86OItaBT6hYNIEcPMImP17aByxQ0bXhO4svlN+JzfhsCaFZClxA
 lxXc2aBwxRdKn7Pa0DppAiuJIDmqS/Ehk2pJuZWZyXaW0zR8w/kwEraVRyM7BWFxHqSoIqGkS
 O12u06e+0APuRztm6tgHAo5lIOxliCpAUy37xmliNU15VU22b5IHRZ6UfroeJtoyTUyXhrCfv
 u3eHaGkQOZT6kgC8pu/0JY6etQeiShpqXs+1bbbDX5k6ugyzMKGBBVlhcM2J7bfoApivJNNzL
 VmRzRSwnXB4FVVUyxWa52ZbNq/A1TjBoUZktOktZKwsutIrok/7oKppeX3smNyDwXIGkSbVir
 DIpCL2PkFBC2KJ4r5w7Nu2JlMBwVx2jqvxELDk6n/ofWHGPVq4WswIjNWoBWNrpEV+5cJ9uKT
 kIOh6Aa/uOEapN8zIZfVoTKswvEInh72AOJwGZ88eXyYJVZYfok6dCCMxd+nDHD7+Xh31lEBZ
 UJMyrKMMGej7BbaiL2Pfpm6A4nFpxuBgI7uSm+WTuZN3U77y75HtoQCJhXTZ7FchlIVsW3cMT
 AaHuEvv08I9kBqSAEzfzmpPCK9PIvbiBu9qdyzOnOOLY8PoBQFb2ZTKpIFIL/hTn5nqWTa7gq
 Qb7BoIoaeRlYdZionzkOLwDYSukLO8TNYsxC/MVTW36c0Im5E4dIbTDJnOI3sclmeWIaxQO5+
 CMJo6ylL2cCx+3kfGSy3VBX7HOWyGcPjnRNVYpaJzWhk2MalE/vWh534iPKN/iU32wrBdqG9p
 EMa/3/fqjsgKm1pF8WYE+A99jI5ZvFcJbcZDX+0pDeP680jUIiDNIO5Rz3Re469eQR7xpKSkD
 P3vlWEgAo+MksN3f9hNYiLGQtw11RpLCfMZcTxpYXiP30VZvfmvUrKIxBr5t/6TyKvJ1npVdf
 qZtY8O93v3IqyUWQGw3FAllkBnodRlLoqlDRpaBaJrSy8+JTUlc+A5Y3YVeQyBqkjCobf5OiV
 IzCCrWZxfsOAKYnHCd79djBOlvgZ62A0ADZWczJZui7MVGUIhWpG9s4EBBycG5dojxAejbqVt
 a6XGXRT1xUGwt+/zbcu1VPFALTYG+DdDnzvqL1ZKUILaqQt0ZsO2pDAi+TOjMDRTeci/NHSpb
 ZocmfKKb69mAyxI5c3ejzs1nuMufMEaHe+JPtgKbcTAxV9ZR+KDAOyIgu76syxVKY2zU+Bdhr
 q6VJyDXE0zcAuje+iyB6snnNkQgDvG2KZTGwy4c3kH1u0hGRpufvBWV9NfGU7p7wqX5M7fG88
 /056/rv6HxhOKUG8+epYXMNRJhl/eNfREMQ7/GqkUzOrm3l/NgojeEf+r2
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 76159-done
Cc: 76159-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Manuel Giraud <manuel@HIDDEN> writes:

Hi Manuel,

> This misunderstanding leads me to read how Ange FTP parses netrc (or
> authinfo) entries.  But I'm not sure there is a need for a documentation
> fix then.

OK, let's be it as it is. I'm closing this bug.

Best regards, Michael.




Notification sent to Manuel Giraud <manuel@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Michael Albinus <michael.albinus@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 76159 <at> debbugs.gnu.org:


Received: (at 76159) by debbugs.gnu.org; 10 Feb 2025 15:31:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 10 10:31:58 2025
Received: from localhost ([127.0.0.1]:51985 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1thVlO-0006LG-0l
	for submit <at> debbugs.gnu.org; Mon, 10 Feb 2025 10:31:58 -0500
Received: from ledu-giraud.fr ([51.159.28.247]:40684)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1thVlK-0006L4-KQ
 for 76159 <at> debbugs.gnu.org; Mon, 10 Feb 2025 10:31:55 -0500
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=7D2CsxcM
 6xpLwPu9T+NlXdRWgzSrBxkQk/Zo3SyyT90=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=ylgN6L4RApCmLTYjMDcMecEcmVxlDL
 JQZ1YP1k8lr0QIREo2xPBDKOM6sOxyGkq+FxkXXDE1GNvCla4qKCuYAw==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=7D2CsxcM6xpLwPu9
 T+NlXdRWgzSrBxkQk/Zo3SyyT90=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=xOKrCB6U14T8SL77N3gIM71umd4EVPqiBFmB7g
 cVOJIU/cbAMj/xcV2HOV+wLGI/AuWRzNzz9xv8s0ba6/mSo+lRIdMAnXyBCCueshHd0hGh
 UminDyZ5/phD8xbTpKLrhNWuhQpUS1ZBaeh5M+yGZFmdAdO3D261xjhDUWk16MuJmlLJ0Z
 Tv+77JYY6QpCnr+iTFWh+t1XXGdApBNVMUn3f+gimOTWH3U0YUB0KWuxSWbhhNBXwqEyOT
 CF8P+vGGOt3QYb0oB6A54q/5VwEnwZLd/OK7cxG6oR4hnSaMLWy7tjFWDu61DS2jOhAg2X
 bKQcE1I+9WXFxLFxLvLqKrHA==
Received: from computer (<unknown> [89.207.171.163])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id ad8b9900
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Mon, 10 Feb 2025 16:31:49 +0100 (CET)
From: Manuel Giraud <manuel@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
Subject: Re: bug#76159: [PATCH] Precision on Ange FTP parsing of .authinfo file
In-Reply-To: <874j12dnyl.fsf@HIDDEN>
References: <87wmdzt9in.fsf@HIDDEN> <878qqff3zw.fsf@HIDDEN>
 <875xlic3uk.fsf@HIDDEN> <874j12dnyl.fsf@HIDDEN>
Date: Mon, 10 Feb 2025 16:31:47 +0100
Message-ID: <87a5atak9o.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76159
Cc: 76159 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Michael Albinus <michael.albinus@HIDDEN> writes:

> Manuel Giraud <manuel@HIDDEN> writes:
>
> Hi Manuel,
>
>>> 3. The Tramp manual explains already the port problem with the example
>>>
>>>    machine melancholia#4711 port davs login daniel%BIZARRE password geheim
>>>
>>> Shouldn't we simply say that this is also applicable for the 'ftp'
>>> method?
>>
>> Yes, maybe that could be enough.  I don't really know how to phrase it
>> though.
>
> How about this:

Well sorry but I think there was some misunderstanding on my part.  The
manual says:

--8<---------------cut here---------------start------------->8---
   The port can take any TRAMP method (*note Inline methods::, *note
External methods::).  Omitting port values matches all TRAMP methods.
Domain and ports, as used in TRAMP file name syntax, must be appended to
the machine and login items:
--8<---------------cut here---------------end--------------->8---

I thought that the 'port' option was used to declare a non standard port
for a given server but it seems that this option is used to match
against TRAMP *method*.

This misunderstanding leads me to read how Ange FTP parses netrc (or
authinfo) entries.  But I'm not sure there is a need for a documentation
fix then.
-- 
Manuel Giraud




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76159; Package emacs. Full text available.

Message received at 76159 <at> debbugs.gnu.org:


Received: (at 76159) by debbugs.gnu.org; 10 Feb 2025 11:44:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 10 06:44:02 2025
Received: from localhost ([127.0.0.1]:49280 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1thSCn-0008WG-KU
	for submit <at> debbugs.gnu.org; Mon, 10 Feb 2025 06:44:01 -0500
Received: from mout.gmx.net ([212.227.15.19]:41533)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael.albinus@HIDDEN>)
 id 1thSCj-0008Vr-NR
 for 76159 <at> debbugs.gnu.org; Mon, 10 Feb 2025 06:43:59 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de;
 s=s31663417; t=1739187831; x=1739792631; i=michael.albinus@HIDDEN;
 bh=AgIWcxH2LvPVxUwcA3fM53S5iGcWodP4k/+iNshem2I=;
 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=O4C+Pk/FMkspT0VlzapcCIm+x7NUyOYtT3LQMeK3HfIjcMd6jVQU+UkZfSoTL2XP
 kzAjfepMmhkIa29pWIe6eG3+4Xy7udAxLarzATsLlg+q32Qk/+bDpiFYAqXuF00Bl
 BW7ffzJxWTf47g5uucBYFoTZnrCqgcSRBprEcfeH1TvD04Ym/CH/10T5CY1t7w68O
 1gQ4Hu87+x5YHVquHAwTcM6sXjRLOEe2nEA6SveiM/VkRRQpQAWyQt5H+R7qpWihD
 Zc+p8Ok8fFwT6ZJjiTufz/+SOe11UztZoMgDIDW+frZMLoRBdAET64pRSaPmxux7J
 wAixy2Z+5Z1lc816eg==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mg6Zw-1tBzKb1j82-00cJJA; Mon, 10
 Feb 2025 12:43:51 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#76159: [PATCH] Precision on Ange FTP parsing of .authinfo file
In-Reply-To: <875xlic3uk.fsf@HIDDEN> (Manuel Giraud's message of "Sun, 
 09 Feb 2025 20:31:15 +0100")
References: <87wmdzt9in.fsf@HIDDEN> <878qqff3zw.fsf@HIDDEN>
 <875xlic3uk.fsf@HIDDEN>
Date: Mon, 10 Feb 2025 12:43:46 +0100
Message-ID: <874j12dnyl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:VnxTdym/EczU+gyR4yRhmJZ6YLkb1AndKmJdzm2TeKDNRLQTiV3
 aO2EnkCPqzBk5KIoey4qF+LsqnKVFvxLjsBwEG6pUBWJtO3Xk7C3EdaxYOKfxViQeIVbJ31
 DqBph+jRllF/v1HsCupPOLafWIIJCkrBQ2rFXH1V2MLehWIIpO/wLimiWBH4wy64jcXqx/J
 AqDM0f4vJQ7mk5x1bismA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:jx+03eF6MNc=;KJ9/W8k53O17SrDP0D8COZRJ2Ud
 xaGYVKuSDHof37tHyzhwV6Ss8QPGi12guwcxXxVFK+MJQ8Czhk3+K/4KI0ZSq3Q365hlH72Tg
 L/Q8mmosCRKvAwh4WgHYlQpEdoFiSJDzOvORaql2snchzhVCPhpwO/XV8CZHFh+6uevkxHHpU
 99ittqT08EeVqidGe8YYhRsrOtvjMZyjnADGlL2ckcASOYPLesmZJpyy16QtWbEa/LVlONFem
 Ke53olZ9t1rIdJSqq2BeV849och9iShbZr5JIejF1HoVwQXO1BvFsBhGiTg8DgwFhlwiPn9PB
 j+ESqkbKqJ6JolZyPaLyj4k+9YxGDq1eb+KZ6h0YVvUopHa7G6F9SoOSNDyS0FgPsduSdw1V+
 XCAuxP38/+slJ/im06OshWFk9azIPwHykpB/nGnzdPW+z5TINoVshnBnNdsj2CnARDh9P9JDE
 eUC3wHpDMTTvN5Wi/poW+2KlIjMztZ+HCtcZTTqtOtCzOSLcnAiEsrwog2ofTfXESpTPPALCL
 w1BmMEgGIhYeARkWA8YnuVG/utuuFOahM4K7sKrmbYEOfqyT4wGLniWDWFvwWlSIJyfD16dOi
 5EpmfGJD3GArMR8lUiFyABjhXmlsC9/qxjmDlfKC/AZy90wgIk4FDgawzsTYzSrVznLw3zju5
 7ri4wZwNbE0lSNzKAQDrYGtNy8Io5QmiPzJii8m3UqDZ0YMGJOYvGIheURkRFvjYebXjVfFLn
 Efxr2J2B51OGlfWKj/YUYbZ6zlKAYLgQSnTmxuChWl/4jrZjsdOUFHuEs6eUlMhDDiUT/hRvf
 h5bBtmabNdlKz4GcfpcWBHCAKUalR1oJ92w2beFhZ+wXBTaPWKgLVtb5k68roUsm2aeIMLmUB
 t4SQxr/PeBYkDFlezV/JQb2D1db+y7zJ8+bmnLpcHaWy9x715pCuiUlRJTwJ7h0V3fdsywiv+
 S+KvVV+GS0glrbqjFukEBxI5P+7mzyUFCrIQYhMCmBnEUozY4Iit1i0ER9laYiBawcj1PrFzP
 lxY/hlo8MPbvOWj+X6bX4xQgnVK+GEu9RUSDTOlJMkX0Hv6vDhIjX3+nJq4pQmAKMH3joUbjJ
 bPj4Es9Hf8UDyi7Sq0+x2gmQ01684d3cHbr2zIjjkPVfWps7xrGIOJAkWTAv7FDYwbP3oT0XX
 F9rJufXvbjMbXFuenmT66ZKv5nqiO9dfFsULaomy+zzkbDwWPPn91NsOyo+FRKXYmufDhMxzU
 TOvoUW1V0ny5KZJeEzS7owQzLIR04ZUT+T6AHF5qkV8dPMB0ZAsIBYLCqiZWTSTz4CT+LN6gm
 O0ezXULShxQdMd5vWyKtq/PydtM5kz4zxEl13b6k0xi/Jmx7HZC+14HHGtcfMNIyz4tL7SqLK
 4mtXC/DPjDLOzbHHoALRw8F4RE0gmkZDu1/sWc5EnGKrNnO1LFeWkwCJVv
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 76159
Cc: 76159 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain

Manuel Giraud <manuel@HIDDEN> writes:

Hi Manuel,

>> 3. The Tramp manual explains already the port problem with the example
>>
>>    machine melancholia#4711 port davs login daniel%BIZARRE password geheim
>>
>> Shouldn't we simply say that this is also applicable for the 'ftp'
>> method?
>
> Yes, maybe that could be enough.  I don't really know how to phrase it
> though.

How about this:


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 86ffba29744..3f6d25e3fab 100644
=2D-- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -2187,6 +2187,13 @@ Password handling
 machine melancholia#4711 port davs login daniel%BIZARRE password geheim
 @end example

+@noindent
+This must also be applied for the @option{ftp} method, like in
+
+@example
+machine @var{host}#@var{port} port ftp login @var{user} password secret
+@end example
+
 For the methods @option{doas}, @option{sudo}, @option{sudoedit} and
 @option{nspawn} the password of the user requesting the connection is
 needed, and not the password of the target user@footnote{On the local

--=-=-=
Content-Type: text/plain


Best regards, Michael.

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76159; Package emacs. Full text available.

Message received at 76159 <at> debbugs.gnu.org:


Received: (at 76159) by debbugs.gnu.org; 9 Feb 2025 19:31:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 09 14:31:25 2025
Received: from localhost ([127.0.0.1]:46358 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1thD1Y-0003ha-Lx
	for submit <at> debbugs.gnu.org; Sun, 09 Feb 2025 14:31:24 -0500
Received: from ledu-giraud.fr ([51.159.28.247]:20284)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1thD1V-0003hQ-Vk
 for 76159 <at> debbugs.gnu.org; Sun, 09 Feb 2025 14:31:23 -0500
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=etH5J1gJ
 3zGDVdD/dR946IShk2zs4gaR840bxSc9v44=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=CgVNVLeqvjf0LSCmQflogYLvfkQDPh
 ihkeK663GsvMSqMUTAMaI3xGZzoaQmLk3TtvdIJnADdn/JiHpxs9MGBg==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=etH5J1gJ3zGDVdD/
 dR946IShk2zs4gaR840bxSc9v44=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=BrN01kr6PfCkVEIqufu42BU63z+vguejehm53r
 z2nCKFJA7KlYGlk5LbyLptJMUBBjwUqrh/sJBa54iM8UmSHjEHTKn8394Zj/WeMXxBQ9fl
 llS0M+7rRdyoizivUasyjbSDDEIKzdM0FIIKEXQ+yuZNsu1hoeguWrOU1yu5Kzm/Nlle+l
 fv6LFNN8NbS4WgtaF/gqbYgGAmAMmJtgqZQ7OZf2pPQ7akA5d05vmWnMUl5m1qYryLmbu4
 sGog+SM8+7as7AZM4lGJbwg5o6A+V+Hd08/XGKwy7vCmqRN0rl+QOvGRxFN/3sCDtV+Hpv
 +pORRtbNl9FC8ey5G9E58RBQ==
Received: from computer (2630.fr [82.65.148.221])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 2fff3d3a
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Sun, 9 Feb 2025 20:31:16 +0100 (CET)
From: Manuel Giraud <manuel@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
Subject: Re: bug#76159: [PATCH] Precision on Ange FTP parsing of .authinfo file
In-Reply-To: <878qqff3zw.fsf@HIDDEN>
References: <87wmdzt9in.fsf@HIDDEN> <878qqff3zw.fsf@HIDDEN>
Date: Sun, 09 Feb 2025 20:31:15 +0100
Message-ID: <875xlic3uk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76159
Cc: 76159 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Michael Albinus <michael.albinus@HIDDEN> writes:

> Manuel Giraud <manuel@HIDDEN> writes:
>
>> Hi Michael,
>
> Hi Manuel,
>
>> I end up having to read the ange-ftp source code to understand this
>> issue.  So maybe it needs to be documented.  WDYT?
>
> Thanks for pointing to this problem. However, I believe it is a little
> bit more complex.
>
> 1. Ftp is still ftp. I believe, if you have a ~/.netrc file containing
>
>    machine HOST login USER port PORT password SECRET
>
>
>    it will still work, independent of auth-sources.

I have tested it and it doesn't work for me.  I have left
`ange-ftp-netrc-filename' to its default and add such entry in my .netrc
but TRAMP/Ange-FTP cannot connect to the host (which listens on a non
standard port).

From what I can gather from "ange-ftp.el", it seems that it could only
parse a different port with the form HOST#PORT.

> 2. Your proposed entry
>
>    machine HOST#PORT login USER password SECRET
>
>
>    is good for every Tramp method, not only for method 'ftp'. Dow we
>    want to have such a wildcard entry?

Yes, you're right this is too large.  Maybe it should be:

     machine HOST#PORT port ftp login USER password SECRET

As I have stated, I don't think that Ange FTP cares about the 'port'
option.  But maybe, this is required to filter out other methods.

> 3. The Tramp manual explains already the port problem with the example
>
>    machine melancholia#4711 port davs login daniel%BIZARRE password geheim
>
> Shouldn't we simply say that this is also applicable for the 'ftp'
> method?

Yes, maybe that could be enough.  I don't really know how to phrase it
though.
-- 
Manuel Giraud




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76159; Package emacs. Full text available.

Message received at 76159 <at> debbugs.gnu.org:


Received: (at 76159) by debbugs.gnu.org; 9 Feb 2025 16:59:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 09 11:59:59 2025
Received: from localhost ([127.0.0.1]:46041 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1thAf0-0001kl-OM
	for submit <at> debbugs.gnu.org; Sun, 09 Feb 2025 11:59:59 -0500
Received: from mout.gmx.net ([212.227.15.19]:48513)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael.albinus@HIDDEN>)
 id 1thAey-0001kU-1v
 for 76159 <at> debbugs.gnu.org; Sun, 09 Feb 2025 11:59:57 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de;
 s=s31663417; t=1739120389; x=1739725189; i=michael.albinus@HIDDEN;
 bh=aDWltUerXKInFrCObmnl6pugH9DIkaDwTIUo2hOSlmA=;
 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=hHkbGM/VLLOLma/RTd/6VsIB7iUUVB/QRqgM/pCcKHHXs1A9m+tNW3k/gk6jU8xb
 3FlI9efd0SqFUP5Y/pfiZXNP+pYzIh9ys5ew1/QhNmNB07PvptJfX0CCWZEDESXlP
 7GSo3pn+YaHOblfLKJJfC55c6yq2KU/QACHe8saf2FMmxvdrYVG6Z+eTK1djr73LZ
 BUkJAoVyXhyOpjPfvmM0YxIds0b6yLuZvC/MG3k0vfSzWQrnYWFYJapVZxz+Tak9c
 AA3q+jodq+Cx/NC21elEqpm7NT9xJsaz2YKIvHGRdm4M6uaSFTd6AStG0/uzm87mJ
 MI7/92++6gSpdd0JhQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MWAOW-1tsesh2fKE-00UiRK; Sun, 09
 Feb 2025 17:59:49 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#76159: [PATCH] Precision on Ange FTP parsing of .authinfo file
In-Reply-To: <87wmdzt9in.fsf@HIDDEN> (Manuel Giraud's message of "Sun, 
 09 Feb 2025 16:36:48 +0100")
References: <87wmdzt9in.fsf@HIDDEN>
Date: Sun, 09 Feb 2025 17:59:47 +0100
Message-ID: <878qqff3zw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:sn3vmqPjPHW/6aBnoU/PIgTB5dudLogQQ4eCdK35Z4jEKZ3Ohan
 o0+B2iekNnqmuk/XffATSbXlhB42EkGGNYco7CaE6glB2+1nBNHbe6wm/yUmzPtvwlg4RGa
 /Wx3BpxEx1Hrq4QVWl1yIwzmFJTtgVr4YeGYeaA4tiZ7+pAO0gSLwCjJmnSsIfqmUHkobb1
 5Y4c5HEeJEQaxT0PeH5lQ==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:vg8Au2Ytato=;8PGMLPi30slmyZapQMR7JPRjZcy
 ljAUPpeA5t24at93PSN/vuFw2OUMcVhHuxzccUHPPUhPBqbh6SCnLkxvE/MR+ezI6H3K1FvE0
 X6nBEG5WRTXySXzTPHeCj9MrzvCINZsGoJphqcEp2yVMRPt3Qju0UY6c+xvuXLNlTaaoPl5Hr
 G/DbY4dN5JconPiJBxJwyXq3OBQUElKCV1+25aGoxE/bDCVSilsY3Up+fJ/rCS9SjTqCuh9i/
 f6f5q0Lft8IcBBjCbHbk29LueLkLBATkdt/IYK0gxCV4dsFhO/EQf+XvXUt7LLz9obME1Nsj5
 0SZCe8bzaOvA/3PwyaWQ4LV/AHY83aIwCBKmQrMDfAfbKxh1WI4/3/DjFu3EljhoGzOKZYV5m
 k5KZAHFmLCripDrzBxrabmw8dKOzhO0b6OAz19t7XhDQ/4mfGa83TYI9ZoVEHeL2Xn8NANHaR
 uJI8ZFpfEACOvUAq9zv/vRlBHShgn2BD/txQwLZLkgYv98vg0r9ML8Ru61/ZjqWkJ42XWsNFo
 t1AqDMmkbKlOPo4AJ+Y8nVJs6G+Be4BheXZ9a8/D9OttrpgK+PGtvAkcpcrzN4oXTGIfwh02c
 tmcHKvE8At82hiixJZtKGsseF5kwIUgtoSphvPsfzyXQ7me/EC3+W8Bk+Rgb/8CMfxhXQoV+p
 eGrJLf7g2lnZ/wSu2FAcGKdW93tS1+gX0yJOCAFsjAQES0kaBvrUFnII75JBMuZlXIG89lW3v
 qyh3ngSn+hjp+zsIXwL9hsXkJICBpNYL+7GPJRAg4dIFTF6+n1qXM4BC/R6US64TbHeZEK1kY
 XdQT3OSE76ostvf0mUOawCQYlOG5RP0Y2a3BSX9nN4PSSE18SBsP+KMOOWpA3yP3pMZLS87R/
 ewTixXf8swu661GQ8FS4s4PLsMXPhj+mAIPCkNmvBZl0D+66gB4oM2MQ6e08APJrTo1wfrqSP
 DFsP9PGoJiq0Xzik/21NKWe/XFq3dhVlVB9f7ooYFinoCwB1xmIx9pjSIkvmbDJ6AwSZemMSP
 beuQ3oaQxHRsaI3BOr2EP4Yl2eXbQl+Vbo5WpLb1fFsKVu72FG7seWecJRxKZgiKd5aFxC82D
 AutMO5nda/fp2A38YRgl1o0k+bH85iWDcrka3JkkjLxeFjjSIjFxzBH3VUZAHcpHmtw+P4b1h
 s9jbuWh7JZsqNOqUhRCIJI28qFoJYCXMLUM1mT6g9yTTaFI2Qgxev/zEu6MYl0bR0FUzVgmdm
 TsiVanOBfB6fObSKPJV6+FyhGwzfeUPGHV9Tg/2yqsWTYwRYFJDdKsvmIHtLMUbMbRBJgaY1G
 +CWIkA4nZDdexuvvFA9yaKdhnKWNFn00CGHccg2m3hjrQRr2p0kDezZ/MK1u/fOwKbYl5H82x
 5aZjRaWXb78kqNwinzoc3iXunQ3sSAounLxKb7KFUISoJaaSUOotcjPklZ
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 76159
Cc: 76159 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Manuel Giraud <manuel@HIDDEN> writes:

> Hi Michael,

Hi Manuel,

> I end up having to read the ange-ftp source code to understand this
> issue.  So maybe it needs to be documented.  WDYT?

Thanks for pointing to this problem. However, I believe it is a little
bit more complex.

1. Ftp is still ftp. I believe, if you have a ~/.netrc file containing

--8<---------------cut here---------------start------------->8---
   machine HOST login USER port PORT password SECRET
--8<---------------cut here---------------end--------------->8---

   it will still work, independent of auth-sources.

2. Your proposed entry

--8<---------------cut here---------------start------------->8---
   machine HOST#PORT login USER password SECRET
--8<---------------cut here---------------end--------------->8---

   is good for every Tramp method, not only for method 'ftp'. Dow we
   want to have such a wildcard entry?

3. The Tramp manual explains already the port problem with the example

--8<---------------cut here---------------start------------->8---
   machine melancholia#4711 port davs login daniel%BIZARRE password geheim
--8<---------------cut here---------------end--------------->8---

Shouldn't we simply say that this is also applicable for the 'ftp' method?

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76159; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Feb 2025 15:37:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 09 10:37:07 2025
Received: from localhost ([127.0.0.1]:45837 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1th9Mp-0003HV-2M
	for submit <at> debbugs.gnu.org; Sun, 09 Feb 2025 10:37:07 -0500
Received: from lists.gnu.org ([2001:470:142::17]:49916)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1th9Mm-0003Gl-GS
 for submit <at> debbugs.gnu.org; Sun, 09 Feb 2025 10:37:05 -0500
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 <manuel@HIDDEN>)
 id 1th9Mf-0001rG-UI
 for bug-gnu-emacs@HIDDEN; Sun, 09 Feb 2025 10:36:57 -0500
Received: from ledu-giraud.fr ([51.159.28.247])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <manuel@HIDDEN>)
 id 1th9Md-0005Mk-8u
 for bug-gnu-emacs@HIDDEN; Sun, 09 Feb 2025 10:36:57 -0500
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=CBG4ADul
 O7k0JMJdXOU4rFg55BOfofZm2P/gIpsGnz0=; h=date:subject:cc:to:from;
 d=ledu-giraud.fr; b=jnJHIbcEV59VphRR4hjKccIfbIC9KwqKWxZhR44Q46oh/eeg4V
 I6fLXXjyf3hjtQUh+Nd0p4jAUtA2Fn5v0rAw==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=CBG4ADulO7k0JMJd
 XOU4rFg55BOfofZm2P/gIpsGnz0=; h=date:subject:cc:to:from;
 d=ledu-giraud.fr; b=ck+69ZAxik+JWG2mUYX2bdYLrowc/4xOmyn28+1p0nKnKSIKCO
 1Ypv+u1s8MBFw20F57UZ4/wOaLxFfE/h6KsadYf+jF6VtXqElVGdGSGfW2Gbjau5w+VD+Q
 Mid0H/nAur9oJ/wyilHDZfbtbHwqnbWI/trnPovBuZq7gG1qWnH5L6s2yTKejxkU41We+b
 Ycu8k9ptqgRc/k00xYCq3vX9bX8fmAoX4Lde/4mgPvwD/MO+OjLIccNMw150Hq2HxG6SiT
 XcBY8GEL52h1cHSW9kv2NrfBjO001Ebllf7YqD32HRue7tOPjTbtbY6hmHPXzpEMpnnUcL
 /BkVCCcxg6Yg==
Received: from computer (2630.fr [82.65.148.221])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 5cc426a0
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Sun, 9 Feb 2025 16:36:50 +0100 (CET)
From: Manuel Giraud <manuel@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: [PATCH] Precision on Ange FTP parsing of .authinfo file
X-Debbugs-Cc: 
Date: Sun, 09 Feb 2025 16:36:48 +0100
Message-ID: <87wmdzt9in.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@HIDDEN;
 helo=ledu-giraud.fr
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
Cc: Michael Albinus <michael.albinus@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

--=-=-=
Content-Type: text/plain

Tags: patch

Hi Michael,

I end up having to read the ange-ftp source code to understand this
issue.  So maybe it needs to be documented.  WDYT?

In GNU Emacs 31.0.50 (build 6, x86_64-unknown-openbsd7.6, X toolkit) of
 2025-02-09 built on computer
Repository revision: 35fa7126903a0ac6a28901d194f0753acf60928d
Repository branch: mgi/tramp-ange-docfix
Windowing system distributor 'The X.Org Foundation', version 11.0.12101015
System Description: OpenBSD computer 7.6 GENERIC.MP#534 amd64

Configured using:
 'configure CC=egcc CPPFLAGS=-I/usr/local/include
 LDFLAGS=-L/usr/local/lib MAKEINFO=gmakeinfo --prefix=/home/manuel/emacs
 --bindir=/home/manuel/bin --with-x-toolkit=lucid
 --with-toolkit-scroll-bars=no --without-cairo
 --without-compress-install'


--=-=-=
Content-Type: text/patch
Content-Disposition: attachment;
 filename=0001-Precision-on-Ange-FTP-parsing-of-.authinfo-file.patch

From b2dcfd3dcbdabb3539b240caf8ef4f6244d89c86 Mon Sep 17 00:00:00 2001
From: Manuel Giraud <manuel@HIDDEN>
Date: Sun, 9 Feb 2025 16:27:20 +0100
Subject: [PATCH] Precision on Ange FTP parsing of .authinfo file

* doc/misc/tramp.texi (Password handling): Document discrepancy
in Ange FTP parsing of .authinfo file.
---
 doc/misc/tramp.texi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 86ffba29744..7bab822a095 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -2223,6 +2223,17 @@ Password handling
 (customize-set-variable 'ange-ftp-netrc-filename "~/.authinfo.gpg")
 @end lisp
 
+If you do so, note that Ange FTP does not parse the @option{port} option
+in the @file{.authinfo} file.  So if you need to use different port, you
+should have an entry like this:
+
+@example
+machine @var{host}#@var{port} login @var{user} password secret
+@end example
+
+And then use it to open your remote files with
+@file{@trampfn{ftp,host#port,/path/to/file}}.
+
 In case you do not want to use an authentication file for
 @value{tramp} passwords, use connection-local variables
 @ifinfo
-- 
2.48.1


--=-=-=
Content-Type: text/plain

-- 
Manuel Giraud

--=-=-=--




Acknowledgement sent to Manuel Giraud <manuel@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#76159; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 10 Feb 2025 16:00:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.