Skip to content
Snippets Groups Projects
Verified Commit 86a38b47 authored by jD91mZM2's avatar jD91mZM2
Browse files

Fix broken exec test

parent ecd8aca6
No related branches found
No related tags found
No related merge requests found
execv: No such file or directory
exec works :D
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment