main: add more luser-friendly error message when execvp fails

closes #423
closes #412
This commit is contained in:
rofl0r 2022-01-10 11:44:26 +00:00
parent 2739fb5416
commit a12cf0a516

View File

@ -154,7 +154,8 @@ int main(int argc, char *argv[]) {
old_val ? old_val : "");
putenv(buf);
execvp(argv[start_argv], &argv[start_argv]);
perror("proxychains can't load process....");
fprintf(stderr, "proxychains: can't load process '%s'.", argv[start_argv]);
perror(" (hint: it's probably a typo)");
return EXIT_FAILURE;
}