lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | /* make sure we handle argv[0] == NULL */ |
2 | |||||
3 | #include <unistd.h> | ||||
4 | |||||
5 | int main(int argc, char *argv[]) | ||||
6 | { | ||||
7 | if (argc == 0) | ||||
8 | return 0; | ||||
9 | |||||
10 | char *exec_argv[1], *exec_envp[1]; | ||||
11 | exec_argv[0] = exec_envp[0] = NULL; | ||||
12 | return execve("./exec-null", exec_argv, exec_envp); | ||||
13 | } |