The error message represented by errno will now be printed by run to stderr if exec() fails
This commit is contained in:
parent
9d57b9cc5f
commit
32d26ddaf7
@ -214,7 +214,7 @@ void wofi_run_exec(const char* cmd) {
|
|||||||
wofi_write_cache(mode, cmd);
|
wofi_write_cache(mode, cmd);
|
||||||
execl(cmd, cmd, NULL);
|
execl(cmd, cmd, NULL);
|
||||||
}
|
}
|
||||||
fprintf(stderr, "%s cannot be executed\n", cmd);
|
fprintf(stderr, "%s cannot be executed %s\n", cmd, strerror(errno));
|
||||||
exit(errno);
|
exit(errno);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user