Don't print usage if service can't find binary.

This commit is contained in:
Ben Gras 2006-01-17 15:56:55 +00:00
parent c452baf68d
commit 39f1fb81ea

View File

@ -130,7 +130,8 @@ PRIVATE int parse_arguments(int argc, char **argv)
exit(EINVAL); exit(EINVAL);
} }
if (stat(req_path, &stat_buf) == -1) { 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); exit(errno);
} }
if (! (stat_buf.st_mode & S_IFREG)) { if (! (stat_buf.st_mode & S_IFREG)) {