This commit is contained in:
Alessandro Mauri 2020-04-26 17:31:06 +02:00
parent 1fb0a4c6fa
commit 3c9bbe4140

2
hkd.c
View File

@ -253,7 +253,7 @@ void exec_command (char *path)
break; break;
case 0: case 0:
/* we are the child */ /* we are the child */
if(execv(path, argv) < 0) { if(execvp(path, argv) < 0) {
/* execv only returns if an error occured, so we exit /* execv only returns if an error occured, so we exit
* otherwise we duplicate the process */ * otherwise we duplicate the process */
fprintf(stderr, ANSI_COLOR_RED "Could not run %s\n" ANSI_COLOR_RESET fprintf(stderr, ANSI_COLOR_RED "Could not run %s\n" ANSI_COLOR_RESET