curl-users
Re: curl does not detect 'no space left on device' during scp
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 18 Jul 2014 22:58:54 +0200 (CEST)
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.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-07-18