projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71d6263
)
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
Mariusz Bialonczyk
<manio@skyboo.net>
Tue, 10 Jul 2018 09:51:03 +0000
(11:51 +0200)
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
b4668e0
..
0149f40
100644
(file)
--- 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, "
B
htTC:"
#if COLLECT_DAEMON
"fP:"
#endif