Don't print usage if service can't find binary.
This commit is contained in:
parent
c452baf68d
commit
39f1fb81ea
@ -130,7 +130,8 @@ PRIVATE int parse_arguments(int argc, char **argv)
|
||||
exit(EINVAL);
|
||||
}
|
||||
if (stat(req_path, &stat_buf) == -1) {
|
||||
print_usage(argv[ARG_NAME], "couldn't get status of binary");
|
||||
perror(req_path);
|
||||
fprintf(stderr, "couldn't get stat binary\n");
|
||||
exit(errno);
|
||||
}
|
||||
if (! (stat_buf.st_mode & S_IFREG)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user