wrapper.c
· 383 B · C
Raw
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
char *myenviron[] = { (char*)0};
//argv[0] = "wrapper-restrict";
execve("/home/jmjl/dev/starlanes/server",argv,myenviron);
perror("There was a unexpected technical problem with execve, or the program returned something different than 0");
exit(1);
}
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 | } |