blob: cf5c2a1897ce0fbb0f3d2a3a17ee0f27b55289a7 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
}
 |