From 093f84e42192fd8dc2234a00b754515be7ea9016 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Mon, 4 Apr 2016 17:51:30 -0400 Subject: [pkg] simple launcher for the linux bundles --- 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 00000000..aac5da3f --- /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 = "libs"; +char* const entrypoint = "bitmask"; + +int main(int argc, char *argv[]) +{ + argv[0] = entrypoint; + chdir(bitmask_path); + execv(entrypoint, argv); +} -- cgit v1.2.3