X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fdebug.c;h=cd3e8a5f0294a910782b38552d2b0757869f862c;hb=16da7589e91b0030fb5564553447f80b97c0b18c;hp=b6d9f686de485ad624ae2595c5f0db213486c9b2;hpb=13276f753421c2df4f036647ce43e2ae8a2def0c;p=libguestfs.git diff --git a/daemon/debug.c b/daemon/debug.c index b6d9f68..cd3e8a5 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -28,7 +28,7 @@ #include #include -#include "../src/guestfs_protocol.h" +#include "guestfs_protocol.h" #include "daemon.h" #include "actions.h" @@ -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; }