projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97967b0
)
Fix parsing option for avoiding making BaseDir
author
Mariusz Bialonczyk
<manio@skyboo.net>
Tue, 10 Jul 2018 09:47:53 +0000
(11:47 +0200)
committer
Pavel Rochnyak
<pavel2000@ngs.ru>
Tue, 10 Jul 2018 11:35:54 +0000
(18:35 +0700)
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
patch
|
blob
|
history
diff --git
a/src/daemon/collectd.c
b/src/daemon/collectd.c
index
7dba657
..
140e7cc
100644
(file)
--- 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, "
B
htTC:"
#if COLLECT_DAEMON
"fP:"
#endif