From 07c512dad1762f3791cc796a3014b43a0211345b Mon Sep 17 00:00:00 2001
From: =?utf8?q?Jos=C3=A9=20Bollo?= <jose.bollo@iot.bzh>
Date: Wed, 30 Dec 2015 14:49:49 +0100
Subject: [PATCH] zip: fix bug

Change-Id: I69002d48416c2e58fc3ac4f9291368023e084bec
---
 TODO             | 1 +
 src/wgtpkg-zip.c | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/TODO b/TODO
index 6e89fef..75cdee0 100644
--- a/TODO
+++ b/TODO
@@ -4,3 +4,4 @@ List of things to do
 - more documentation
 - notifications
 - manage upgrade packages
+- use key facilities of kernel
diff --git a/src/wgtpkg-zip.c b/src/wgtpkg-zip.c
index 4b87a41..a810e50 100644
--- a/src/wgtpkg-zip.c
+++ b/src/wgtpkg-zip.c
@@ -415,8 +415,8 @@ int zwrite(const char *zipfile)
 	args[0] = "zip";
 	args[1] = "-q";
 	args[2] = "-r";
-	args[3] = workdir;
-	args[4] = zipfile;
+	args[3] = zipfile;
+	args[4] = workdir;
 	args[5] = NULL;
 
 	return zrun(PATH_TO_ZIP, args);
-- 
2.16.6