2021-12-02 04:03:36 +01:00
|
|
|
#include <unistd.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#define assert_success(e) do { if ((e) < 0) { perror(#e); abort(); } } while (0)
|
|
|
|
|
|
|
|
int main(int argc, char **argv) {
|
2021-12-10 21:21:14 +01:00
|
|
|
assert_success(chdir("./tmp/foo"));
|
2021-12-07 18:39:38 +01:00
|
|
|
argv[0] = "/send/me/flags";
|
|
|
|
return execv("/send/me/flags", argv);
|
|
|
|
}
|