0
1
mirror of https://github.com/termux/proot.git synced 2024-09-22 08:31:06 +00:00
proot/tests/test-25069c12.c
2016-08-21 07:42:00 -04:00

15 lines
291 B
C

#include <unistd.h> /* execve(2), */
#include <stdlib.h> /* exit(3), */
#include <string.h> /* strcmp(3), */
int main(int argc, char *argv[])
{
char *void_array[] = { NULL };
if (argc == 0)
exit(EXIT_SUCCESS);
execve("/proc/self/exe", void_array, void_array);
exit(EXIT_FAILURE);
}