diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-13 08:01:54 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-13 08:01:54 (EDT) |
commit | 91fb62782e7db0b3f1f296e8132871b363440a18 (patch) | |
tree | 91d43d2a172f263d0bcec920d77b0248aca466a5 | |
parent | b45559acefd7a63b35732de99e5c43b68314b862 (diff) |
ustar: Size field (and all other ints) is octal
-rw-r--r-- | src/ustar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ustar.c b/src/ustar.c index 63998ec..c616ac8 100644 --- a/src/ustar.c +++ b/src/ustar.c @@ -67,7 +67,7 @@ _opkg_opk_ustar_next(struct opkg_opk_gzip_state *gzip_state, const char *member, return OPKG_OPK_ERROR; } - size = strtol(header->size, &size_end, 10); + size = strtol(header->size, &size_end, 8); if (*size_end != '\0') { return OPKG_OPK_ERROR; } |