blob: 69f6f5fee64007b4c1f72299df1c4185144b28eb [file] [log] [blame]
#include <unistd.h>
#define FILENAME "execve\nfilename"
static const char * const argv[] =
{ FILENAME, "first", "second", NULL, NULL, NULL };
static const char * const envp[] =
{ "foobar=1", "foo\nbar=2", NULL , "", NULL , "", NULL, NULL};
int
main(void)
{
execve(FILENAME, (char * const *) argv, (char * const *) envp);
return 0;
}