summaryrefslogtreecommitdiff
path: root/src/io_archive.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-06-19 16:09:30 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-06-19 16:10:13 +0300
commitd89c219173aeaea174deb8dd7477e1ea7ea71510 (patch)
tree0aaac0c4735e2f3e27205b7e8a717a157518428b /src/io_archive.c
parent17684141fe9d895361262b10c4c229fbcff6e702 (diff)
downloadapk-tools-d89c219173aeaea174deb8dd7477e1ea7ea71510.tar.gz
apk-tools-d89c219173aeaea174deb8dd7477e1ea7ea71510.tar.bz2
apk-tools-d89c219173aeaea174deb8dd7477e1ea7ea71510.tar.xz
apk-tools-d89c219173aeaea174deb8dd7477e1ea7ea71510.zip
reduce misuse of error codes from errno.h
Diffstat (limited to 'src/io_archive.c')
-rw-r--r--src/io_archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io_archive.c b/src/io_archive.c
index 57d8b83..94071f6 100644
--- a/src/io_archive.c
+++ b/src/io_archive.c
@@ -258,7 +258,7 @@ int apk_tar_parse(struct apk_istream *is, apk_archive_entry_parser parser,
if (r == 0) goto ok;
err:
/* Check that there was no partial (or non-zero) record */
- if (r >= 0) r = -EBADMSG;
+ if (r >= 0) r = -APKE_EOF;
ok:
free(pax.ptr);
free(longname.ptr);