pkg: filenames with '/' cannot be control data

cute-signatures
Timo Teras 2009-07-20 08:56:53 +03:00
parent e30834fdcb
commit 99be653f14
1 changed files with 1 additions and 1 deletions

View File

@ -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;