From 39f1fb81ea1140a0b95c82004a1adbbb0dce1484 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 17 Jan 2006 15:56:55 +0000 Subject: [PATCH] Don't print usage if service can't find binary. --- servers/rs/service.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) { -- 2.44.0