summaryrefslogtreecommitdiff
path: root/src/app_extract.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-08-03 21:21:09 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-08-03 21:21:43 +0300
commitaa44cfac05bb4bd6f336ebbfd7b26deca8a19075 (patch)
treedbfb586e5ef9ffebeb4362bcff67e1b155706fc8 /src/app_extract.c
parenta0e59e089786e0203de62bc5f9fc02f5e04ad3b1 (diff)
downloadapk-tools-aa44cfac05bb4bd6f336ebbfd7b26deca8a19075.tar.gz
apk-tools-aa44cfac05bb4bd6f336ebbfd7b26deca8a19075.tar.bz2
apk-tools-aa44cfac05bb4bd6f336ebbfd7b26deca8a19075.tar.xz
apk-tools-aa44cfac05bb4bd6f336ebbfd7b26deca8a19075.zip
extract: fix extracting untrusted package
Diffstat (limited to 'src/app_extract.c')
-rw-r--r--src/app_extract.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app_extract.c b/src/app_extract.c
index 57d40fe..75034bf 100644
--- a/src/app_extract.c
+++ b/src/app_extract.c
@@ -141,8 +141,11 @@ static int extract_v3_meta(struct apk_extract_ctx *ectx, struct adb *db)
static int extract_file(struct apk_extract_ctx *ectx, const struct apk_file_info *fi, struct apk_istream *is)
{
struct extract_ctx *ctx = container_of(ectx, struct extract_ctx, ectx);
+ struct apk_out *out = &ctx->ac->out;
int r;
+ apk_dbg2(out, "%s", fi->name);
+
if (fi->uvol_name) return apk_extract_volume(ectx->ac, fi, is);
r = apk_extract_file(ctx->root_fd, fi, 0, 0, is, 0, 0, 0,