summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1737d01)
raw | patch | inline | side by side (parent: 1737d01)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 5 Jun 2016 22:09:58 +0000 (00:09 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 5 Jun 2016 22:09:58 +0000 (00:09 +0200) |
src/daemon/configfile.c | patch | blob | history |
index 93e90e3b14442199f3600547d5084beef065a83c..b9860bd9b96878534b5ec5849914f47a0ba0f574 100644 (file)
--- a/src/daemon/configfile.c
+++ b/src/daemon/configfile.c
break;
if (i >= cf_global_options_num)
+ {
+ ERROR ("configfile: Cannot set unknown global option `%s'.", option);
return (-1);
+ }
if (cf_global_options[i].from_cli && (! from_cli))
{
- DEBUG ("Configfile: Ignoring %s `%s' option because "
+ DEBUG ("configfile: Ignoring %s `%s' option because "
"it was overriden by a command-line option.",
option, value);
return (0);
break;
if (i >= cf_global_options_num)
+ {
+ ERROR ("configfile: Cannot get unknown global option `%s'.", option);
return (NULL);
+ }
return ((cf_global_options[i].value != NULL)
? cf_global_options[i].value