From 99be653f141f57e1474bd645efd770aa3e3bd68f Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Mon, 20 Jul 2009 08:56:53 +0300 Subject: pkg: filenames with '/' cannot be control data --- src/package.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/package.c') diff --git a/src/package.c b/src/package.c index 4a90993..df4922b 100644 --- a/src/package.c +++ b/src/package.c @@ -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; -- cgit v1.2.3-60-g2f50