diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -76,7 +76,7 @@ _opkg_opk_main_extract(const char *file_name, const char *outer_member, goto error2; } - if (opkg_opk_ustar_seek(outer_ustar, outer_member) != OPKG_OPK_OK) { + if (opkg_opk_ustar_seek(outer_ustar, 1, outer_member) != OPKG_OPK_OK) { fprintf(stderr, "Error: Failed to find \"%s\" in archive\n", outer_member); goto error3; @@ -128,7 +128,8 @@ _opkg_opk_main_read_control(struct opkg_opk_ustar *ustar) size_t size; int ret; - if (opkg_opk_ustar_seek(ustar, "./control") != OPKG_OPK_OK) { + if (opkg_opk_ustar_seek(ustar, 2, "control", "./control") != + OPKG_OPK_OK) { fputs("Error: Failed to find control file\n", stderr); return OPKG_OPK_ERROR; } |