]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Unify reader and writer filter process handling
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 2 Jun 2025 21:28:26 +0000 (23:28 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 2 Jun 2025 21:28:26 +0000 (23:28 +0200)
commit2764062e650059884dcec1d49d0a3401cda8e637
treea909daf71158b0ccc63ff898f03ea87b7b0573ce
parent13700e1fb8bfc2c6aae687ad0bfb5b943bafcaa2
Unify reader and writer filter process handling

Use pid_t since waitpid returns a pid_t. Also check for a negative
return value in writer as well to avoid reading the possibly
unitialized status value.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_read_support_filter_program.c
libarchive/archive_write_add_filter_program.c