diff options
author | Kali Kaneko <kali@leap.se> | 2016-05-18 12:13:52 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2016-05-18 12:13:52 -0400 |
commit | 90aa7a275c41af130dcddaefd798ae35c505b6d5 (patch) | |
tree | 95441aa18d1022eea56d9348e0c32f392bb674ea /pkg/launcher/bitmask-launcher.c | |
parent | aecb13feed8797acaa3f91be45a82a52b64d4723 (diff) | |
parent | facefed990195bd89bf1064e75b171edd084f632 (diff) |
Merge tag '0.9.2'
Tag leap.bitmask version 0.9.2
Diffstat (limited to 'pkg/launcher/bitmask-launcher.c')
-rw-r--r-- | pkg/launcher/bitmask-launcher.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkg/launcher/bitmask-launcher.c b/pkg/launcher/bitmask-launcher.c new file mode 100644 index 00000000..cf5c2a18 --- /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 <unistd.h> +#include <stdlib.h> + +char* const bitmask_path = "lib"; +char* const entrypoint = "bitmask"; + +int main(int argc, char *argv[]) +{ + argv[0] = entrypoint; + chdir(bitmask_path); + execv(entrypoint, argv); +} |