From: Ben Gras Date: Tue, 17 Jan 2006 15:56:55 +0000 (+0000) Subject: Don't print usage if service can't find binary. X-Git-Tag: v3.1.2a~439 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/mult.png?a=commitdiff_plain;h=39f1fb81ea1140a0b95c82004a1adbbb0dce1484;p=minix.git Don't print usage if service can't find binary. --- diff --git a/servers/rs/service.c b/servers/rs/service.c index 15f965e31..e7b3321e3 100644 --- a/servers/rs/service.c +++ b/servers/rs/service.c @@ -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)) {