From: Michihiro NAKAJIMA Date: Thu, 11 Oct 2012 21:30:25 +0000 (+0900) Subject: Properly call next filter even if the external program is already closed X-Git-Tag: v3.1.0~40^2~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4c8851c5d531b092699b9ae8cc8300703b30800;p=thirdparty%2Flibarchive.git Properly call next filter even if the external program is already closed or not opend. --- diff --git a/libarchive/archive_write_add_filter_program.c b/libarchive/archive_write_add_filter_program.c index 16dcc54be..4aa699d05 100644 --- a/libarchive/archive_write_add_filter_program.c +++ b/libarchive/archive_write_add_filter_program.c @@ -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);