sftp file upload doesn't truncate file
Date: Wed, 9 May 2007 16:58:26 +0200
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.
I solved this by changing lib/ssh.c:726 from
This will correctly truncate the file.
I also made a diff of it which can be located here:
-- Kristian Gunstone http://www.pulia.nuReceived on 2007-05-09