|
|
1.1 ! root 1: #include "sys/types.h" ! 2: #include "sys/stat.h" ! 3: ! 4: rmdir(f) ! 5: char *f; ! 6: { ! 7: int status, i; ! 8: struct stat st; ! 9: ! 10: if (-1 == stat(f, &st)) ! 11: return(-1); ! 12: while((i=fork()) == -1) ! 13: sleep(3); ! 14: if(i) { ! 15: wait(&status); ! 16: if (stat(f, &st) == -1) ! 17: return(0); ! 18: return(-1); ! 19: ! 20: } ! 21: execl("/bin/rmdir", "rmdir", f, 0); ! 22: exit(1); ! 23: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.