Commit 99be653f authored by Timo Teräs's avatar Timo Teräs

pkg: filenames with '/' cannot be control data

parent e30834fd
......@@ -296,7 +296,7 @@ int apk_sign_ctx_process_file(struct apk_sign_ctx *ctx,
if (ctx->data_started)
return 1;
if (fi->name[0] != '.') {
if (fi->name[0] != '.' || strchr(fi->name, '/') != NULL) {
ctx->data_started = 1;
ctx->control_started = 1;
return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment