cURL / Mailing Lists / curl-users / Single Mail


Re: curl does not detect 'no space left on device' during scp

From: Xeno Campanoli <>
Date: Mon, 21 Jul 2014 08:11:46 -0700

Security is both secrecy and reliability. There should be an aspect to
establish reliability. Presumably, however, one could just copy it
back, and check the copy.

On 07/21/2014 01:36 AM, Daniel Stenberg wrote:
> On Fri, 18 Jul 2014, Priyanka Shah wrote:
>> Thanks Daniel. Is there another way to find out whether the file was
>> completely transferred or not?
> Check its file size after the transfer?
>> I tried using curl_easy_getinfo(), but looks like it returns bytes
>> transferred, not bytes written on remote server.
> That would have the same problem. If the server silently accepts all the
> data we send to it, than that is implied to be a successful transfer. If
> the server lied to us about that, then we've been lied to and will of
> course have the wrong information.
> If you truly want to fix this problem, I would recommend you first make
> sure that my assumptions here have been correct - by building a test app
> with libssh2 only and make sure it gets the same results with SCP. Then
> if this is still correct, you'd check the server end and see what you
> can do to make sure it doesn't "return success" when in fact it fails...

List admin:

Received on 2014-07-21