nethercote | a81e916 | 2004-02-12 14:34:14 +0000 | [diff] [blame] | 1 | #include <unistd.h> |
2 | |||||
3 | int main(void) | ||||
4 | { | ||||
tom | 26b9c87 | 2008-01-05 00:01:20 +0000 | [diff] [blame] | 5 | char* null_filename = NULL; |
nethercote | a81e916 | 2004-02-12 14:34:14 +0000 | [diff] [blame] | 6 | char* bad[2] = { (char*)1, NULL }; |
7 | char* good[1] = { NULL }; | ||||
8 | |||||
tom | 26b9c87 | 2008-01-05 00:01:20 +0000 | [diff] [blame] | 9 | execve(null_filename, bad, bad); |
nethercote | a81e916 | 2004-02-12 14:34:14 +0000 | [diff] [blame] | 10 | execve("/bin/true", good, good); |
11 | |||||
12 | return 0; | ||||
13 | } |