From ca7b9060efa0039ddab1205883aa35ea6197e859 Mon Sep 17 00:00:00 2001 From: Mariusz Bialonczyk Date: Tue, 10 Jul 2018 11:47:53 +0200 Subject: [PATCH] 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. --- src/daemon/collectd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/collectd.c b/src/daemon/collectd.c index 7dba657d..140e7cce 100644 --- a/src/daemon/collectd.c +++ b/src/daemon/collectd.c @@ -466,7 +466,7 @@ void read_cmdline(int argc, char **argv, struct cmdline_config *config) { /* read options */ while (1) { int c; - c = getopt(argc, argv, "htTC:" + c = getopt(argc, argv, "BhtTC:" #if COLLECT_DAEMON "fP:" #endif -- 2.11.0