X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Ftar.c;h=39fce8c9a12d20246100647a66f3c10cab3e1f95;hb=988a8784647a66adbece3c9fb470c06a4cce3cdd;hp=3c756afce5b65d1014d8260d72c5e31a21c2a6fb;hpb=33b638109ed66ea360b53b80b1f407b3a5f5ec39;p=libguestfs.git diff --git a/daemon/tar.c b/daemon/tar.c index 3c756af..39fce8c 100644 --- a/daemon/tar.c +++ b/daemon/tar.c @@ -118,8 +118,11 @@ do_tXz_in (const char *dir, const char *filter) 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"); pclose (fp); - /* Do NOT send any error. */ return -1; }