emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug that needs fixing


From: Stefan Monnier
Subject: Re: Bug that needs fixing
Date: Thu, 14 Jul 2005 02:33:58 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> ** Ange-ftp should ignore irrelevant IPv6 errors:
>> 
>> Message-Id: <address@hidden>
>> From: "Piet van Oostrum" 
>> To: address@hidden
>> Subject: Ange-ftp can't deal with IPV6/IPV4 fallback
>> 
>> Symptoms:
>> 
>> C-x C-f /ftp.nluug.nl:/
>> 
>> The problem is that the DNS first gives an IPV6 address. However our
>> router doesn't do IPV6. Ftp then falls back to IPV4:
>> 
ftp> open ftp.nluug.nl
>> Trying 2001:610:1:80aa:192:87:102:36...
>> ftp: connect to address 2001:610:1:80aa:192:87:102:36: No route to host
>> Trying 192.87.102.36...
>> Connected to ftp.nluug.nl.
>> 
>> Ange-ftp chokes on the `No route to host' message and doesn't look any
>> further.
>> 
>> I think in the near future we will see more of this problem, so it might be
>> time to make anfe-ftp more intelligent.

> I haven't seen code in ange-ftp or any ChangeLog entry solving this
> problem. Unfortunately, I cannot reproduce the problem as
> described. On my GNU/Linux machine, the ftp client doesn't try the
> different IP addresses when IP6 is enabled. Instead of, it simply says

> magdalene:~> ftp ftp.nluug.nl
> ftp: connect: Invalid argument

> Should be acceptable, because my router doesn't support IP6 either.

> Checking the original poster's message, he was working with GNU Emacs
> 21.3.50.10 (powerpc-apple-darwin7.2.0). I fear further analysis must
> be done on such a system. Or somebody could provide me temporary
> access to such a beast.

I've finally had time to take a look at it on my Mac OS X system and I can
indeed reproduce it.  The patch below seems to fix it, but it's maybe a bit
naive, I don't know.
Does someone see something wrong with such a patch?


        Stefan


--- orig/lisp/net/ange-ftp.el
+++ mod/lisp/net/ange-ftp.el
@@ -729,7 +729,15 @@
          "^local:\\|^Trying\\|^125 \\|^550-\\|^221 .*oodbye\\|"
           "^500 .*AUTH \\(KERBEROS\\|GSSAPI\\)\\|^KERBEROS\\|"
          "^530 Please login with USER and PASS\\|" ; non kerberised vsFTPd
-         "^22[789] .*[Pp]assive\\|^200 EPRT\\|^500 .*EPRT")
+         "^22[789] .*[Pp]assive\\|^200 EPRT\\|^500 .*EPRT\\|"
+          ;; On Mac OS X we sometimes get things like:
+          ;; 
+          ;;     ftp> open ftp.nluug.nl
+          ;;     Trying 2001:610:1:80aa:192:87:102:36...
+          ;;     ftp: connect to address 2001:610:1:80aa:192:87:102:36: No 
route to host
+          ;;     Trying 192.87.102.36...
+          ;;     Connected to ftp.nluug.nl.
+          "^ftp: connect to address .*: No route to host")
   "*Regular expression matching ftp messages that can be ignored."
   :group 'ange-ftp
   :type 'regexp)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]