]> Zhao Yanbai Git Server - minix.git/commitdiff
Don't print usage if service can't find binary.
authorBen Gras <ben@minix3.org>
Tue, 17 Jan 2006 15:56:55 +0000 (15:56 +0000)
committerBen Gras <ben@minix3.org>
Tue, 17 Jan 2006 15:56:55 +0000 (15:56 +0000)
servers/rs/service.c

index 15f965e3138742f1e8ceaca4037eefb2c9111530..e7b3321e3a9fb450aefe8f8a702e7f60c5e0566c 100644 (file)
@@ -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)) {