summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index d2f513b..d400934 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
}