blob: 3df99f3ce8b1144a36406cb63add9e8b0cb17e6d [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/* make sure we handle argv[0] == NULL */
2
3#include <unistd.h>
4
5int 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}