X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Ftar.c;h=c3bdcf7ec5485b218192aa85bfcd37b53be6ff0f;hp=03dc5121cf083e3e4cf4a48ca772c9bd77f9041b;hb=6c97a65ce768b357a1481cde0533d4cf0b8b931c;hpb=84fc760439e82e6b3616abd0d1f9bd7d7eb01ec0 diff --git a/daemon/tar.c b/daemon/tar.c index 03dc512..c3bdcf7 100644 --- a/daemon/tar.c +++ b/daemon/tar.c @@ -149,7 +149,9 @@ do_tar_out (const char *dir) return -1; } - send_file_end (0); /* Normal end of file. */ + if (send_file_end (0)) /* Normal end of file. */ + return -1; + return 0; } @@ -268,6 +270,8 @@ do_tgz_out (const char *dir) return -1; } - send_file_end (0); /* Normal end of file. */ + if (send_file_end (0)) /* Normal end of file. */ + return -1; + return 0; }