mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
12 lines
291 B
C
12 lines
291 B
C
#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) {
|
|
assert_success(chdir("/tmp/foo"));
|
|
argv[0] = "/send/me/flags";
|
|
return execv("/send/me/flags", argv);
|
|
}
|