zip: fix bug
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 30 Dec 2015 13:49:49 +0000 (14:49 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Wed, 30 Dec 2015 13:49:49 +0000 (14:49 +0100)
Change-Id: I69002d48416c2e58fc3ac4f9291368023e084bec

TODO
src/wgtpkg-zip.c

diff --git a/TODO b/TODO
index 6e89fef..75cdee0 100644 (file)
--- a/TODO
+++ b/TODO
@@ -4,3 +4,4 @@ List of things to do
 - more documentation
 - notifications
 - manage upgrade packages
+- use key facilities of kernel
index 4b87a41..a810e50 100644 (file)
@@ -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);