cURL / Mailing Lists / curl-users / Single Mail


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

From: Daniel Stenberg <>
Date: Fri, 18 Jul 2014 22:58:54 +0200 (CEST)

On Wed, 16 Jul 2014, Priyanka Shah wrote:

> It looks like curl cannot detect 'no space left on device' when I try to
> copy file using scp. It returns success, but the copied file size is zero
> bytes.


> Is this is known bug with curl? Is there some way I can detect this
> situation from my application code?

I believe this happens because libssh2 that does the SCP transfer doesn't
return an error for the transfer. I've seen that happen in the past for
no-space-left-on-device when the server simply doesn't return an error for
this case (SCP is a not a very good protocol for detailed error reporting). It
may or may not be what happens for you here.

List admin:
Received on 2014-07-18