X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fdebug.c;h=cd3e8a5f0294a910782b38552d2b0757869f862c;hp=091e7410a090184e371045aad7c0113a6b1f418d;hb=f4d996fd26762053d68f46de5790aae893f03d38;hpb=33b638109ed66ea360b53b80b1f407b3a5f5ec39 diff --git a/daemon/debug.c b/daemon/debug.c index 091e741..cd3e8a5 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -540,8 +540,11 @@ do_debug_upload (const char *filename, int mode) return -1; } if (r == -2) { /* cancellation from library */ + /* This error is ignored by the library since it initiated the + * cancel. Nevertheless we must send an error reply here. + */ + reply_with_error ("file upload cancelled"); close (fd); - /* Do NOT send any error. */ return -1; }