blob: aac5da3fb00a882c7cce2c839264562eb9942a9b (
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 = "libs";
char* const entrypoint = "bitmask";
int main(int argc, char *argv[])
{
argv[0] = entrypoint;
chdir(bitmask_path);
execv(entrypoint, argv);
}
|