Last active 1697039743

Starlanes wrapper for a weird thing I didn't finish a few years ago

jmjl's Avatar jmjl revised this gist 1697039743. Go to revision

1 file changed, 10 insertions

wrapper.c(file created)

@@ -0,0 +1,10 @@
1 + #include <stdio.h>
2 + #include <stdlib.h>
3 + #include <unistd.h>
4 + int main(int argc, char *argv[]) {
5 + char *myenviron[] = { (char*)0};
6 + //argv[0] = "wrapper-restrict";
7 + execve("/home/jmjl/dev/starlanes/server",argv,myenviron);
8 + perror("There was a unexpected technical problem with execve, or the program returned something different than 0");
9 + exit(1);
10 + }
Newer Older