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=ca7b9060efa0039ddab1205883aa35ea6197e859;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 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