Fix broken exec test
This commit is contained in:
@@ -1 +0,0 @@
|
||||
execv: No such file or directory
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
exec works :D
|
||||
|
||||
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user