Merge pull request #2856 from manio/master
authorPavel Rochnyak <pavel2000@ngs.ru>
Tue, 10 Jul 2018 10:29:02 +0000 (17:29 +0700)
committerGitHub <noreply@github.com>
Tue, 10 Jul 2018 10:29:02 +0000 (17:29 +0700)
Fix parsing option for avoiding making BaseDir

src/daemon/collectd.c

index b4668e0..0149f40 100644 (file)
@@ -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