summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-20 08:56:53 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-20 08:56:53 +0300
commit99be653f141f57e1474bd645efd770aa3e3bd68f (patch)
tree03f6985a9a1757ed1fde28dfd4423fa685f213e4
parente30834fdcbaf8b273f6e6eed411dec580bfbb4dd (diff)
downloadapk-tools-99be653f141f57e1474bd645efd770aa3e3bd68f.tar.gz
apk-tools-99be653f141f57e1474bd645efd770aa3e3bd68f.tar.bz2
apk-tools-99be653f141f57e1474bd645efd770aa3e3bd68f.tar.xz
apk-tools-99be653f141f57e1474bd645efd770aa3e3bd68f.zip
pkg: filenames with '/' cannot be control data
-rw-r--r--src/package.c2
1 files changed, 1 insertions, 1 deletions
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;