]> git.ipfire.org Git - thirdparty/libarchive.git/commit
tools: Handle archive_match errors
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 18 Mar 2026 13:55:56 +0000 (14:55 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 9 May 2026 10:18:38 +0000 (12:18 +0200)
commit2a62d049ea492f8959acd2e8100e5fc70fe6cbdb
tree4b1a0b9c1ae89b812abecc57ac35dc80d0a78c51
parentb4788823719490990a12740f87b8bec68d246eab
tools: Handle archive_match errors

These functions can return negative values, in which case operation
itself failed. While internal libarchive libraries handle these cases,
the tools don't. Check for negative values in them as well.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
cpio/cpio.c
tar/read.c
tar/write.c