cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] Active Mode FTPS Data Port Range

From: <koettermarkus_at_gmx.de>
Date: Sat, 02 May 2009 06:40:19 +0200

Daniel Stenberg wrote:
> Thanks, but this breaks test 116 (I didn't try the previous versions and
> I didn't test any further...)
>
> test 116...[FTP download, failed PORT]
>
> protocol FAILED:
> --- log/check-expected 2009-05-01 22:19:29.000000000 +0000
> +++ log/check-generated 2009-05-01 22:19:29.000000000 +0000
> @@ -1,6 +1,6 @@
> USER anonymous
> PASS ftp_at_example.com
> PWD
> -EPRT |1|1.2.3.4|
> -PORT 1,2,3,4,
> +EPRT |1|127.0.0.1|
> +PORT 127,0,0,1,
> QUIT
>
> - abort tests
> TESTDONE: 114 tests out of 115 reported OK: 99%
> TESTFAIL: These test cases failed: 116
> TESTDONE: 115 tests were considered during 30 seconds.
>

As you can't bind 1.2.3.4 if you don't own the addresses (bound on your
interface) I expect it to fail and use localhost (the local part of the
connection to the ftp service) instead.

To me this is fine and tries to correct an user input error (default to
ctrl connections local ip address - 127.0.0.1 in this case).

How come you expect it do be able to report success binding an ip
address (1.2.3.4 http://whois.domaintools.com/1.2.3.4 ) you do not even own?

Markus
Received on 2009-05-02