cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP third party transfer on the same remote host.

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 18 Oct 2004 16:26:33 +0200 (CEST)

On Mon, 18 Oct 2004, Alexander Krasnostavsky wrote:

> The attached patch makes possible to transfer a file on the same remote host
> between different users/directories, and also fixes a bug of reusing
> existing connections in inverse order between remote hosts.

Thanks, this looks like a neat fix. The patch has two problems though:

1. Host names are case insensitive, use strequal() not strcmp().

2. A slightly bigger but more obscure bug:

    You're not allowed to set data->set.reuse_fresh like this. It will modify
    how future invokes with this same handle will behave. You need to create
    a "shadow variable" that gets the data->set.reuse_fresh value set from the
    start and later can be changed internally if need be.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-10-18