From: Mariusz Bialonczyk Date: Tue, 10 Jul 2018 09:47:53 +0000 (+0200) Subject: Fix parsing option for avoiding making BaseDir X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ab93a143ac2c908b4cc692669290a1e9c26c62e9;p=collectd.git Fix parsing option for avoiding making BaseDir Parsing is broken since: 386ecab4 Reading configuration file is now done outside main(). So after mentioned commit we've got: collectd: invalid option -- 'B' This commit fixes this. --- diff --git a/src/daemon/collectd.c b/src/daemon/collectd.c index b4668e06..0149f405 100644 --- a/src/daemon/collectd.c +++ b/src/daemon/collectd.c @@ -295,7 +295,7 @@ static int do_shutdown(void) { static void read_cmdline(int argc, char **argv, struct cmdline_config *config) { /* read options */ while (1) { - int c = getopt(argc, argv, "htTC:" + int c = getopt(argc, argv, "BhtTC:" #if COLLECT_DAEMON "fP:" #endif