mirror of
https://github.com/termux/proot.git
synced 2024-09-22 08:31:06 +00:00
15 lines
291 B
C
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);
|
|
}
|