Fix broken exec test

This commit is contained in:
jD91mZM2
2018-07-22 19:57:42 +02:00
parent ecd8aca6d6
commit 86a38b47d1
3 changed files with 3 additions and 3 deletions
-1
View File
@@ -1 +0,0 @@
execv: No such file or directory
+1
View File
@@ -0,0 +1 @@
exec works :D
+2 -2
View File
@@ -2,8 +2,8 @@
#include <stdio.h>
int main(int argc, char** argv) {
char *const args[1] = {"arg"};
execv("write", args);
char* args[] = {"sh", "-c", "echo 'exec works :D'", NULL};
execv("/bin/sh", args);
perror("execv");
return 0;
}