[PATCH] rrdcached: Exit with status != 0, if an invalid command line option was used.
Sebastian Harl <[email protected]>
| Newsgroups | gmane.comp.db.rrdtool.devel |
|---|---|
| Message-ID | <[email protected]> |
---
program/src/rrd_daemon.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/program/src/rrd_daemon.c b/program/src/rrd_daemon.c
index 65ba8e4..128f3c4 100644
--- a/program/src/rrd_daemon.c
+++ b/program/src/rrd_daemon.c
@@ -3115,7 +3115,10 @@ static int read_options (int argc, char **argv) /* {{{ */
"please refer\n"
"to the rrdcached(1) manual page.\n",
VERSION);
- status = -1;
+ if (option == 'h')
+ status = -1;
+ else
+ status = 1;
break;
} /* switch (option) */
} /* while (getopt) */
--
1.6.5.rc2
_______________________________________________
rrd-developers mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkupx4wACgkQEFEKc4UBx/yuQACfbpXITbphF84SWob+yZnwfLIy EC8An3lqURdlMqUPBTbyYGbUnHqfBSZl =/PXB -----END PGP SIGNATURE-----