From: Michael Tremer Date: Thu, 30 Nov 2017 14:51:56 +0000 (+0100) Subject: archive: Return 0 if extraction was successful X-Git-Tag: 0.9.28~1285^2~1231 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=45cdd16fede4a590b1cc8f2d761aad15bcc0146e;p=pakfire.git archive: Return 0 if extraction was successful Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/archive.c b/src/libpakfire/archive.c index 00dcf6f3c..cb0fdbca3 100644 --- a/src/libpakfire/archive.c +++ b/src/libpakfire/archive.c @@ -535,8 +535,10 @@ static int archive_extract(struct archive* a, const char* prefix) { r = archive_read_next_header(a, &entry); // Reached the end of the archive. - if (r == ARCHIVE_EOF) + if (r == ARCHIVE_EOF) { + r = 0; break; + } // Prepend the prefix to the path the file is extracted to. const char* archive_pathname = archive_entry_pathname(entry);