cURL / Mailing Lists / curl-library / Single Mail


Re: sftp file upload doesn't truncate file

From: Dan Fandrich <>
Date: Wed, 9 May 2007 11:24:53 -0700

On Wed, May 09, 2007 at 04:58:26PM +0200, Kristian Gunstone wrote:
> I just noticed another problem, now regarding sftp upload.
> If I upload a file via sftp, but the file already exists on the remote
> host, libcurl will not truncate it. It will just overwrite the number of
> bytes specified with CURLOPT_INFILESIZE from the beginning of the file.

Thanks--I've checked in your patch.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-05-09