From 0f34a5b42fb6dbbcefcc166a4ad71e8502960cdc Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Tue, 27 Sep 2016 14:54:12 -0400 Subject: [pkg] re-add binary launcher to bundle process --- pkg/launcher/bitmask-launcher.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pkg/launcher/bitmask-launcher.c (limited to 'pkg/launcher/bitmask-launcher.c') diff --git a/pkg/launcher/bitmask-launcher.c b/pkg/launcher/bitmask-launcher.c new file mode 100644 index 0000000..cf5c2a1 --- /dev/null +++ b/pkg/launcher/bitmask-launcher.c @@ -0,0 +1,23 @@ +/* + * bitmask-launcher.c + * + * part of the bitmask bundle. + * execute main entrypoint in a child folder inside the bundle. + * + * (c) LEAP Encryption Access Project, 2016. + * License: GPL. + * +*/ + +#include +#include + +char* const bitmask_path = "lib"; +char* const entrypoint = "bitmask"; + +int main(int argc, char *argv[]) +{ + argv[0] = entrypoint; + chdir(bitmask_path); + execv(entrypoint, argv); +} -- cgit v1.2.3