blob: aba252967d4eac46ec9ac289f2c62fa0e00a1be6 [file] [log] [blame]
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char **argv)
{
if (argc == 1)
{
// This tests the case where argv and envp are NULL, which is easy to
// get wrong because it's an unusual case.
if (execve("/bin/true", NULL, NULL) < 0)
{
perror("execve");
exit(1);
}
}
exit(0);
}