syscalls: improve printf before child execl

This commit is contained in:
John 2022-02-21 19:53:51 -06:00
parent c57170a241
commit 5cdd227424

View File

@ -33,7 +33,7 @@ int main(int argc, char **argv) {
/* Prepare to hand over control over to ls,
with the arguments "-la" */
char *command = "/bin/ls", *argv1 = "-la";
printf("[CHILD ]: execl(%s, %s, NULL);\n", command, argv1);
printf("[CHILD ]: execl(%s, %s, %s, NULL);\n", command, command, argv1);
/* execl takes the command, the arguments,
and a null-pointer terminator argument.
argv[0] is the path to the command