1
0
mirror of https://github.com/ioacademy-jikim/debugging synced 2025-06-08 00:16:11 +00:00
2015-12-13 22:34:58 +09:00

14 lines
367 B
C

#include <assert.h>
#include <unistd.h>
int main ( int argc, char** argv, char** envp )
{
char* null_filename = NULL;
char *const argv_exe[] = {"true", NULL};
execve(null_filename, NULL, NULL);
// Solaris requires non-NULL argv param (this is not necessary on Linux)
execve("../../tests/true", argv_exe, envp);
assert(0); // shouldn't get here
}