]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Properly call next filter even if the external program is already closed
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 11 Oct 2012 21:30:25 +0000 (06:30 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 11 Oct 2012 21:30:25 +0000 (06:30 +0900)
or not opend.

libarchive/archive_write_add_filter_program.c

index 16dcc54be69822db48fa4c29777512ee809ba67c..4aa699d052166215a464c51c6dfcd84a924234fe 100644 (file)
@@ -371,7 +371,7 @@ __archive_write_program_close(struct archive_write_filter *f,
        ssize_t bytes_read;
 
        if (data->child == 0)
-               return (ARCHIVE_OK);
+               return __archive_write_close_filter(f->next_filter);
 
        ret = 0;
        close(data->child_stdin);