GNU bug report logs - #48494
28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with GNU inetutils FTP

Previous Next

Package: emacs;

Reported by: Alex Bochannek <alex <at> bochannek.com>

Date: Tue, 18 May 2021 03:55:01 UTC

Severity: normal

Tags: fixed, patch

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48494 in the body.
You can then email your comments to 48494 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Tue, 18 May 2021 03:55:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alex Bochannek <alex <at> bochannek.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 18 May 2021 03:55:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alex Bochannek <alex <at> bochannek.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with GNU inetutils FTP
Date: Mon, 17 May 2021 20:53:41 -0700
[Message part 1 (text/plain, inline)]
AngeFTP cannot parse the output of the GNU inetutils FTP client on macOS
10.14. It errors out with "FTP Error: OPEN request failed:" and the
process buffer shows the following:

ftp> open ftp.tcl.tk
open ftp.tcl.tk
cd /
cd /
cd /
cd /
cd /
cd /
cd /
cd /
cd /
cd /
cd /
cd /
Connected to ftp.tcl.tk.
421 Service not available, remote server has closed connection
ftp> Not connected.
ftp> Not connected.
ftp> Not connected.
ftp> Not connected.
ftp> Not connected.
ftp> Not connected.
ftp> 

This appears to be caused by readline being enabled for ftp and is
resolved when disabling it.

NetBSD/FreeBSD specifically mentions this in its ftp(1) for tnftp:

     -e		 Disables command line editing.	 This is useful	for Emacs
		 ange-ftp mode.

Netkit-ftp on Linux does not exhibit this problem even with readline
enabled; I could not test GNU inetutils on Linux. I tested tnftp on
macOS and it also did not exhibit this problem even with readline
enabled.

Tested versions:
ftp (GNU inetutils) 2.0 macOS 10.14.6
tnftp-20200705 macOS 10.14.6
netkit-ftp 0.17-34.1 Ubuntu 20.04.2 LTS


There is no -e option for Windows FTP and ftp will terminate when
receiving an unknown option (tested version Windows 10.0.19042.928)

There is no -e option in Solaris FTP and I cannot test how it responds
to an unknown option.

I am proposing the below patch which resolves the problem on macOS with
GNU inetutils and does no harm for Netkit-ftp/lukemftp/tnftp.

However, because of the way a Windows client would respond, I am open to
different approaches including considering this an inetutils bug
instead.

[Message part 2 (text/x-patch, inline)]
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
index 04ea809127..1742c68c38 100644
--- a/lisp/net/ange-ftp.el
+++ b/lisp/net/ange-ftp.el
@@ -948,7 +948,7 @@ ange-ftp-gateway-ftp-program-name
   :group 'ange-ftp
   :type 'string)
 
-(defcustom ange-ftp-ftp-program-args '("-i" "-n" "-g" "-v")
+(defcustom ange-ftp-ftp-program-args '("-i" "-n" "-g" "-v" "-e")
   "A list of arguments passed to the FTP program when started."
   :group 'ange-ftp
   :type '(repeat string))
[Message part 3 (text/plain, inline)]
In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G9028))
 of 2021-05-17 built on awb-mbp.local
Repository revision: d83db639d379df142482bf82d7eb020d2ec1ae73
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1671
System Description:  Mac OS X 10.14.6

-- 
Alex.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Tue, 18 May 2021 11:53:02 GMT) Full text and rfc822 format available.

Message #8 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alex Bochannek <alex <at> bochannek.com>
Cc: 48494 <at> debbugs.gnu.org
Subject: Re: bug#48494: 28.0.50;
 [PATCH] AngeFTP fails on macOS 10.14 with GNU inetutils FTP
Date: Tue, 18 May 2021 14:52:56 +0300
> From: Alex Bochannek <alex <at> bochannek.com>
> Date: Mon, 17 May 2021 20:53:41 -0700
> 
> There is no -e option for Windows FTP and ftp will terminate when
> receiving an unknown option (tested version Windows 10.0.19042.928)
> 
> There is no -e option in Solaris FTP and I cannot test how it responds
> to an unknown option.
> 
> I am proposing the below patch which resolves the problem on macOS with
> GNU inetutils and does no harm for Netkit-ftp/lukemftp/tnftp.
> 
> However, because of the way a Windows client would respond, I am open to
> different approaches including considering this an inetutils bug
> instead.

How about making the default value depend on the value of system-type?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Tue, 18 May 2021 17:51:01 GMT) Full text and rfc822 format available.

Message #11 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Alex Bochannek <alex <at> bochannek.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 48494 <at> debbugs.gnu.org
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Tue, 18 May 2021 10:50:25 -0700
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Alex Bochannek <alex <at> bochannek.com>
>> Date: Mon, 17 May 2021 20:53:41 -0700
>> 
>> There is no -e option for Windows FTP and ftp will terminate when
>> receiving an unknown option (tested version Windows 10.0.19042.928)
>> 
>> There is no -e option in Solaris FTP and I cannot test how it responds
>> to an unknown option.
>> 
>> I am proposing the below patch which resolves the problem on macOS with
>> GNU inetutils and does no harm for Netkit-ftp/lukemftp/tnftp.
>> 
>> However, because of the way a Windows client would respond, I am open to
>> different approaches including considering this an inetutils bug
>> instead.
>
> How about making the default value depend on the value of system-type?

You mean something like this?

[Message part 2 (text/x-patch, inline)]
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
index 04ea809127..61a0f09f43 100644
--- a/lisp/net/ange-ftp.el
+++ b/lisp/net/ange-ftp.el
@@ -947,8 +947,13 @@ ange-ftp-gateway-ftp-program-name
 Some AT&T folks claim to use something called `pftp' here."
   :group 'ange-ftp
   :type 'string)
+(defcustom imap-read-timeout (if (memq system-type '(windows-nt cygwin))
+				 1.0
+			       0.1)
 
-(defcustom ange-ftp-ftp-program-args '("-i" "-n" "-g" "-v")
+(defcustom ange-ftp-ftp-program-args (if (eq system-type 'darwin)
+  '("-i" "-n" "-g" "-v" "-e") ; for GNU inetutils
+  '("-i" "-n" "-g" "-v"))
   "A list of arguments passed to the FTP program when started."
   :group 'ange-ftp
   :type '(repeat string))
[Message part 3 (text/plain, inline)]
The more I think about it, the more I am leaning against changing the
default. I don't fully understand what inetutils ftp is doing and why -e
is needed. Maybe submitting a bug against inetutils is the right
approach here?


As an aside (and why a system-type switch may be needed anyway), it
looks to me that -v means the exact opposite thing on Windows than what
is expected:

BSD/Netkit/Inetutils/Solaris/HP-UX/AIX all specify that -v is verbose
and that it's the default for interactive sessions.

tnftp has a -V option that turns off verbose mode. Inetutils has a -V
for --version.

Windows however does this:

-v 	Suppresses display of remote server responses.

(Verified on Windows 10.0.19042.928)

It seems to me that -v should be removed for Windows and likely can be
removed for all systems. I haven't used Cygwin in a while, but I suspect
AngeFTP can use either the Windows or the Inetutils FTP.

Are there any automated cross-platform tests to see on which platform
removing -v might break AngeFTP?

-- 
Alex.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Tue, 18 May 2021 18:20:02 GMT) Full text and rfc822 format available.

Message #14 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alex Bochannek <alex <at> bochannek.com>,
 Michael Albinus <michael.albinus <at> gmx.de>
Cc: 48494 <at> debbugs.gnu.org
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Tue, 18 May 2021 21:18:59 +0300
> From: Alex Bochannek <alex <at> bochannek.com>
> Cc: 48494 <at> debbugs.gnu.org
> Date: Tue, 18 May 2021 10:50:25 -0700
> 
> > How about making the default value depend on the value of system-type?
> 
> You mean something like this?

Yes.

> The more I think about it, the more I am leaning against changing the
> default. I don't fully understand what inetutils ftp is doing and why -e
> is needed. Maybe submitting a bug against inetutils is the right
> approach here?

Could be.

> Are there any automated cross-platform tests to see on which platform
> removing -v might break AngeFTP?

I don't know.  maybe Michael (CC'ed) does.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Wed, 19 May 2021 01:35:02 GMT) Full text and rfc822 format available.

Message #17 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Alex Bochannek <alex <at> bochannek.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 48494 <at> debbugs.gnu.org, Michael Albinus <michael.albinus <at> gmx.de>
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Tue, 18 May 2021 18:34:25 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Alex Bochannek <alex <at> bochannek.com>
>> Cc: 48494 <at> debbugs.gnu.org
>> Date: Tue, 18 May 2021 10:50:25 -0700
>> 
>> > How about making the default value depend on the value of system-type?
>> 
>> You mean something like this?
>
> Yes.
>
>> The more I think about it, the more I am leaning against changing the
>> default. I don't fully understand what inetutils ftp is doing and why -e
>> is needed. Maybe submitting a bug against inetutils is the right
>> approach here?
>
> Could be.

I am sending in a report to bug-inetutils <at> gnu.org and see if they can
offer some insight.

>> Are there any automated cross-platform tests to see on which platform
>> removing -v might break AngeFTP?
>
> I don't know.  maybe Michael (CC'ed) does.

I take back my comment about Windows and -v. On the command line
(cmd.exe), it absolutely does behave as the documentation indicated, but
I just tried out AngeFTP under Windows 7 (Version 6.1.7601) and it only
works with -v. Maybe Michael can explain what is going on there?

-- 
Alex.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Thu, 20 May 2021 13:03:01 GMT) Full text and rfc822 format available.

Message #20 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Alex Bochannek <alex <at> bochannek.com>
Cc: 48494 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Thu, 20 May 2021 15:02:43 +0200
Alex Bochannek <alex <at> bochannek.com> writes:

>>> > How about making the default value depend on the value of system-type?
>>>
>>> You mean something like this?
>>
>> Yes.
>>
>>> The more I think about it, the more I am leaning against changing the
>>> default. I don't fully understand what inetutils ftp is doing and why -e
>>> is needed. Maybe submitting a bug against inetutils is the right
>>> approach here?
>>
>> Could be.
>
> I am sending in a report to bug-inetutils <at> gnu.org and see if they can
> offer some insight.
>
>>> Are there any automated cross-platform tests to see on which platform
>>> removing -v might break AngeFTP?
>>
>> I don't know.  maybe Michael (CC'ed) does.
>
> I take back my comment about Windows and -v. On the command line
> (cmd.exe), it absolutely does behave as the documentation indicated, but
> I just tried out AngeFTP under Windows 7 (Version 6.1.7601) and it only
> works with -v. Maybe Michael can explain what is going on there?

Well, I'm not an expert in ftp, and especially, I'm not an expert in ftp
client command line arguments. While I agree that adding the "-e" option
to the ftp call in ange-ftp.el sounds reasonable, I have no idea what
would be broken with some clients.

A check for system-type is not sufficient, for every system there are
different ftp clients, which could behave different. If we want to add a
check for command argument availability, we would need to fire a test
call, and to analyze, whether given command arguments are supported.

We should take into consideration, that the default value for
ange-ftp-ftp-program-args hasn't been changed for at least 21 years. We
should also take into consideration, that ftp is being phased out in
browsers like Chrome and Firefox; its importance is decreasing. So I
propose to not change anything, and let users customize
ange-ftp-ftp-program-args to their needs.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Thu, 20 May 2021 17:50:01 GMT) Full text and rfc822 format available.

Message #23 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Alex Bochannek <alex <at> bochannek.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 48494 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Thu, 20 May 2021 10:49:23 -0700
Michael Albinus <michael.albinus <at> gmx.de> writes:

> Alex Bochannek <alex <at> bochannek.com> writes:
>
>>>> > How about making the default value depend on the value of system-type?
>>>>
>>>> You mean something like this?
>>>
>>> Yes.
>>>
>>>> The more I think about it, the more I am leaning against changing the
>>>> default. I don't fully understand what inetutils ftp is doing and why -e
>>>> is needed. Maybe submitting a bug against inetutils is the right
>>>> approach here?
>>>
>>> Could be.
>>
>> I am sending in a report to bug-inetutils <at> gnu.org and see if they can
>> offer some insight.
>>
>>>> Are there any automated cross-platform tests to see on which platform
>>>> removing -v might break AngeFTP?
>>>
>>> I don't know.  maybe Michael (CC'ed) does.
>>
>> I take back my comment about Windows and -v. On the command line
>> (cmd.exe), it absolutely does behave as the documentation indicated, but
>> I just tried out AngeFTP under Windows 7 (Version 6.1.7601) and it only
>> works with -v. Maybe Michael can explain what is going on there?
>
> Well, I'm not an expert in ftp, and especially, I'm not an expert in ftp
> client command line arguments. While I agree that adding the "-e" option
> to the ftp call in ange-ftp.el sounds reasonable, I have no idea what
> would be broken with some clients.

That was my primary concern. I looked at EMBA to see if there are any
regression tests that would catch something like this, but didn't see
anything. I am happy to help out with EMBA if need be, by the way.

> A check for system-type is not sufficient, for every system there are
> different ftp clients, which could behave different. If we want to add a
> check for command argument availability, we would need to fire a test
> call, and to analyze, whether given command arguments are supported.

While I agree in principle, the way AngeFTP works pretty clearly assumes
the client to present the BSD FTP command line interface.

> We should take into consideration, that the default value for
> ange-ftp-ftp-program-args hasn't been changed for at least 21 years. We
> should also take into consideration, that ftp is being phased out in
> browsers like Chrome and Firefox; its importance is decreasing. So I

Which is why I am using AngeFTP. The convenient browser-based interfaces
are gone and I am reverting to the same interface I use for other remote
file access (TRAMP).

> propose to not change anything, and let users customize
> ange-ftp-ftp-program-args to their needs.

I agree with that and I am fine with this bug being closed out as "won't
fix" or some equivalent thereof. I submitted a bug against inetutils
(don't have a bug number yet) and the underlying issue I saw on macOS
should probably be addressed there. Until then I can either set
ange-ftp-ftp-program-args or use tnftp.

> Best regards, Michael.

Thanks for the reply, much appreciated!

-- 
Alex.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Thu, 20 May 2021 21:34:01 GMT) Full text and rfc822 format available.

Message #26 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 48494 <at> debbugs.gnu.org, Alex Bochannek <alex <at> bochannek.com>
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Thu, 20 May 2021 23:33:20 +0200
Michael Albinus <michael.albinus <at> gmx.de> writes:

> We should take into consideration, that the default value for
> ange-ftp-ftp-program-args hasn't been changed for at least 21 years. We
> should also take into consideration, that ftp is being phased out in
> browsers like Chrome and Firefox; its importance is decreasing. So I
> propose to not change anything, and let users customize
> ange-ftp-ftp-program-args to their needs.

Perhaps the `ange-ftp-ftp-program-args' doc string should mention that
some ftp clients require "-e"?  That should help with discoverability
for people who have these problems.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Thu, 20 May 2021 22:03:02 GMT) Full text and rfc822 format available.

Message #29 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Alex Bochannek <alex <at> bochannek.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 48494 <at> debbugs.gnu.org, Michael Albinus <michael.albinus <at> gmx.de>
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Thu, 20 May 2021 15:02:33 -0700
[Message part 1 (text/plain, inline)]
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Michael Albinus <michael.albinus <at> gmx.de> writes:
>
>> We should take into consideration, that the default value for
>> ange-ftp-ftp-program-args hasn't been changed for at least 21 years. We
>> should also take into consideration, that ftp is being phased out in
>> browsers like Chrome and Firefox; its importance is decreasing. So I
>> propose to not change anything, and let users customize
>> ange-ftp-ftp-program-args to their needs.
>
> Perhaps the `ange-ftp-ftp-program-args' doc string should mention that
> some ftp clients require "-e"?  That should help with discoverability
> for people who have these problems.

[Message part 2 (text/x-patch, inline)]
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
index 04ea809127..064aca5abf 100644
--- a/lisp/net/ange-ftp.el
+++ b/lisp/net/ange-ftp.el
@@ -949,7 +949,9 @@ ange-ftp-gateway-ftp-program-name
   :type 'string)
 
 (defcustom ange-ftp-ftp-program-args '("-i" "-n" "-g" "-v")
-  "A list of arguments passed to the FTP program when started."
+  "A list of arguments passed to the FTP program when started.
+Some FTP clients may also require the \"-e\" argument, which disables
+command line editing."
   :group 'ange-ftp
   :type '(repeat string))
 
[Message part 3 (text/plain, inline)]
-- 
Alex.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Fri, 21 May 2021 08:26:01 GMT) Full text and rfc822 format available.

Message #32 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Alex Bochannek <alex <at> bochannek.com>
Cc: 48494 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Fri, 21 May 2021 10:25:02 +0200
Alex Bochannek <alex <at> bochannek.com> writes:

Hi Alex,

>> Perhaps the `ange-ftp-ftp-program-args' doc string should mention that
>> some ftp clients require "-e"?  That should help with discoverability
>> for people who have these problems.
>
> diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
> index 04ea809127..064aca5abf 100644
> --- a/lisp/net/ange-ftp.el
> +++ b/lisp/net/ange-ftp.el
> @@ -949,7 +949,9 @@ ange-ftp-gateway-ftp-program-name
>    :type 'string)
>
>  (defcustom ange-ftp-ftp-program-args '("-i" "-n" "-g" "-v")
> -  "A list of arguments passed to the FTP program when started."
> +  "A list of arguments passed to the FTP program when started.
> +Some FTP clients may also require the \"-e\" argument, which disables
> +command line editing."
>    :group 'ange-ftp
>    :type '(repeat string))

LGTM. As I see, you have already submitted several patches to
Emacs. Have you signed already the FSF copyright papers? Otherwise, I
fear your contributions would exceed the max tiny patch limit.

In case you haven't signed yet, would you like to do that? It would
enable you to submit as many patches to Emacs as you like :-)

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Fri, 21 May 2021 17:07:01 GMT) Full text and rfc822 format available.

Message #35 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Alex Bochannek <alex <at> bochannek.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 48494 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Fri, 21 May 2021 10:06:25 -0700
Michael Albinus <michael.albinus <at> gmx.de> writes:

> Alex Bochannek <alex <at> bochannek.com> writes:
>
> Hi Alex,
>
>>> Perhaps the `ange-ftp-ftp-program-args' doc string should mention that
>>> some ftp clients require "-e"?  That should help with discoverability
>>> for people who have these problems.
>>
>> diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
>> index 04ea809127..064aca5abf 100644
>> --- a/lisp/net/ange-ftp.el
>> +++ b/lisp/net/ange-ftp.el
>> @@ -949,7 +949,9 @@ ange-ftp-gateway-ftp-program-name
>>    :type 'string)
>>
>>  (defcustom ange-ftp-ftp-program-args '("-i" "-n" "-g" "-v")
>> -  "A list of arguments passed to the FTP program when started."
>> +  "A list of arguments passed to the FTP program when started.
>> +Some FTP clients may also require the \"-e\" argument, which disables
>> +command line editing."
>>    :group 'ange-ftp
>>    :type '(repeat string))
>
> LGTM. As I see, you have already submitted several patches to
> Emacs. Have you signed already the FSF copyright papers? Otherwise, I
> fear your contributions would exceed the max tiny patch limit.

I have not.

> In case you haven't signed yet, would you like to do that? It would
> enable you to submit as many patches to Emacs as you like :-)

Sure, happy to do that!

-- 
Alex.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Fri, 21 May 2021 17:47:01 GMT) Full text and rfc822 format available.

Message #38 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Alex Bochannek <alex <at> bochannek.com>
Cc: 48494 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Fri, 21 May 2021 19:46:36 +0200
Alex Bochannek <alex <at> bochannek.com> writes:

Hi Alex,

>> LGTM. As I see, you have already submitted several patches to
>> Emacs. Have you signed already the FSF copyright papers? Otherwise, I
>> fear your contributions would exceed the max tiny patch limit.
>
> I have not.
>
>> In case you haven't signed yet, would you like to do that? It would
>> enable you to submit as many patches to Emacs as you like :-)
>
> Sure, happy to do that!

Thanks for this! To start the assignment process you should download
https://git.savannah.gnu.org/cgit/gnulib.git/plain/doc/Copyright/request-assign.future
and return the completed information to the address at the top. When the
process has been finished (it will take some days), please ping me, and
I will push the patch in your name.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Fri, 21 May 2021 18:13:01 GMT) Full text and rfc822 format available.

Message #41 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Alex Bochannek <alex <at> bochannek.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 48494 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Fri, 21 May 2021 11:12:34 -0700
Michael Albinus <michael.albinus <at> gmx.de> writes:

> Alex Bochannek <alex <at> bochannek.com> writes:
>
> Hi Alex,
>
>>> LGTM. As I see, you have already submitted several patches to
>>> Emacs. Have you signed already the FSF copyright papers? Otherwise, I
>>> fear your contributions would exceed the max tiny patch limit.
>>
>> I have not.
>>
>>> In case you haven't signed yet, would you like to do that? It would
>>> enable you to submit as many patches to Emacs as you like :-)
>>
>> Sure, happy to do that!
>
> Thanks for this! To start the assignment process you should download
> https://git.savannah.gnu.org/cgit/gnulib.git/plain/doc/Copyright/request-assign.future
> and return the completed information to the address at the top. When the
> process has been finished (it will take some days), please ping me, and
> I will push the patch in your name.

OK, sent. I also heard back from the Inetutils maintainers and this is
not a known bug in their FTP client.

-- 
Alex.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Mon, 24 May 2021 19:00:02 GMT) Full text and rfc822 format available.

Message #44 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Alex Bochannek <alex <at> bochannek.com>
To: 48494 <at> debbugs.gnu.org
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>,
 Michael Albinus <michael.albinus <at> gmx.de>
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Mon, 24 May 2021 11:59:00 -0700
Michael Albinus <michael.albinus <at> gmx.de> writes:

> Alex Bochannek <alex <at> bochannek.com> writes:
>
> Hi Alex,
>
>>> Perhaps the `ange-ftp-ftp-program-args' doc string should mention that
>>> some ftp clients require "-e"?  That should help with discoverability
>>> for people who have these problems.
>>
>> diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
>> index 04ea809127..064aca5abf 100644
>> --- a/lisp/net/ange-ftp.el
>> +++ b/lisp/net/ange-ftp.el
>> @@ -949,7 +949,9 @@ ange-ftp-gateway-ftp-program-name
>>    :type 'string)
>>
>>  (defcustom ange-ftp-ftp-program-args '("-i" "-n" "-g" "-v")
>> -  "A list of arguments passed to the FTP program when started."
>> +  "A list of arguments passed to the FTP program when started.
>> +Some FTP clients may also require the \"-e\" argument, which disables
>> +command line editing."
>>    :group 'ange-ftp
>>    :type '(repeat string))

Follow-up to this. The issue on macOS appears to be caused by inetutils
picking up libedit for Readline during configuration. Once I installed a
proper libreadline and configured with the right prefix, the problem was
resolved.

Adding the -e comment to the docstring still seems sensible to me.

-- 
Alex.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Tue, 25 May 2021 07:36:01 GMT) Full text and rfc822 format available.

Message #47 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Alex Bochannek <alex <at> bochannek.com>
Cc: 48494 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Tue, 25 May 2021 09:34:50 +0200
Alex Bochannek <alex <at> bochannek.com> writes:

Hi Alex,

> Follow-up to this. The issue on macOS appears to be caused by inetutils
> picking up libedit for Readline during configuration. Once I installed a
> proper libreadline and configured with the right prefix, the problem was
> resolved.
>
> Adding the -e comment to the docstring still seems sensible to me.

D'accord. Perhaps you could also add a comment with this fact, and
referring to bug#48494.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Tue, 25 May 2021 19:34:02 GMT) Full text and rfc822 format available.

Message #50 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Alex Bochannek <alex <at> bochannek.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 48494 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Tue, 25 May 2021 12:33:36 -0700
[Message part 1 (text/plain, inline)]
Michael Albinus <michael.albinus <at> gmx.de> writes:

> Alex Bochannek <alex <at> bochannek.com> writes:
>
> Hi Alex,
>
>> Follow-up to this. The issue on macOS appears to be caused by inetutils
>> picking up libedit for Readline during configuration. Once I installed a
>> proper libreadline and configured with the right prefix, the problem was
>> resolved.
>>
>> Adding the -e comment to the docstring still seems sensible to me.
>
> D'accord. Perhaps you could also add a comment with this fact, and
> referring to bug#48494.

Sounds good. See below.

[Message part 2 (text/x-patch, inline)]
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
index 04ea809127..3f3a3df8e5 100644
--- a/lisp/net/ange-ftp.el
+++ b/lisp/net/ange-ftp.el
@@ -949,7 +949,11 @@ ange-ftp-gateway-ftp-program-name
   :type 'string)
 
 (defcustom ange-ftp-ftp-program-args '("-i" "-n" "-g" "-v")
-  "A list of arguments passed to the FTP program when started."
+  ;; Clients that use the BSD editline instead of the GNU readline
+  ;; library may need to disable command line editing. (Bug#48494)
+  "A list of arguments passed to the FTP program when started.
+Some FTP clients may also require the \"-e\" argument, which disables
+command line editing."
   :group 'ange-ftp
   :type '(repeat string))
 
[Message part 3 (text/plain, inline)]
-- 
Alex.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Thu, 27 May 2021 07:53:01 GMT) Full text and rfc822 format available.

Message #53 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Alex Bochannek <alex <at> bochannek.com>
Cc: 48494 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Thu, 27 May 2021 09:52:14 +0200
Alex Bochannek <alex <at> bochannek.com> writes:

Hi Alex,

> Sounds good. See below.
>
> diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
> index 04ea809127..3f3a3df8e5 100644
> --- a/lisp/net/ange-ftp.el
> +++ b/lisp/net/ange-ftp.el
> @@ -949,7 +949,11 @@ ange-ftp-gateway-ftp-program-name
>    :type 'string)
>
>  (defcustom ange-ftp-ftp-program-args '("-i" "-n" "-g" "-v")
> -  "A list of arguments passed to the FTP program when started."
> +  ;; Clients that use the BSD editline instead of the GNU readline
> +  ;; library may need to disable command line editing. (Bug#48494)
> +  "A list of arguments passed to the FTP program when started.
> +Some FTP clients may also require the \"-e\" argument, which disables
> +command line editing."
>    :group 'ange-ftp
>    :type '(repeat string))

LGTM. Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Thu, 27 May 2021 21:28:01 GMT) Full text and rfc822 format available.

Message #56 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Alex Bochannek <alex <at> bochannek.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 48494 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Thu, 27 May 2021 14:27:05 -0700
Michael Albinus <michael.albinus <at> gmx.de> writes:

> Thanks for this! To start the assignment process you should download
> https://git.savannah.gnu.org/cgit/gnulib.git/plain/doc/Copyright/request-assign.future
> and return the completed information to the address at the top. When the
> process has been finished (it will take some days), please ping me, and
> I will push the patch in your name.

Assignment is complete, just got the signed paperwork back.

-- 
Alex.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48494; Package emacs. (Thu, 27 May 2021 23:26:01 GMT) Full text and rfc822 format available.

Message #59 received at 48494 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Alex Bochannek <alex <at> bochannek.com>
Cc: 48494 <at> debbugs.gnu.org, Michael Albinus <michael.albinus <at> gmx.de>
Subject: Re: bug#48494: 28.0.50; [PATCH] AngeFTP fails on macOS 10.14 with
 GNU inetutils FTP
Date: Fri, 28 May 2021 01:25:02 +0200
Alex Bochannek <alex <at> bochannek.com> writes:

>> D'accord. Perhaps you could also add a comment with this fact, and
>> referring to bug#48494.
>
> Sounds good. See below.

Patch pushed to Emacs 28 now.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 27 May 2021 23:26:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 48494 <at> debbugs.gnu.org and Alex Bochannek <alex <at> bochannek.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 27 May 2021 23:26:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 25 Jun 2021 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 306 days ago.

Previous Next


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