blob: 83e058a2f33327054bbd85af3c6cccdefee7d2e4 [file] [log] [blame]
nethercotea81e9162004-02-12 14:34:14 +00001#include <unistd.h>
2
3int main(void)
4{
tom26b9c872008-01-05 00:01:20 +00005 char* null_filename = NULL;
nethercotea81e9162004-02-12 14:34:14 +00006 char* bad[2] = { (char*)1, NULL };
7 char* good[1] = { NULL };
8
tom26b9c872008-01-05 00:01:20 +00009 execve(null_filename, bad, bad);
nethercotea81e9162004-02-12 14:34:14 +000010 execve("/bin/true", good, good);
11
12 return 0;
13}