mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ctdb-common: Log a message when an invalid conf value is encountered
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
ebb28c57a1
commit
a017d3181a
@ -1135,6 +1135,10 @@ static bool conf_load_option(const char *name,
|
|||||||
value.type = opt->type;
|
value.type = opt->type;
|
||||||
ret = conf_value_from_string(tmp_ctx, value_str, &value);
|
ret = conf_value_from_string(tmp_ctx, value_str, &value);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
|
D_ERR("conf: invalid value [%s] -> \"%s\" = \"%s\"\n",
|
||||||
|
state->s->name,
|
||||||
|
name,
|
||||||
|
value_str);
|
||||||
talloc_free(tmp_ctx);
|
talloc_free(tmp_ctx);
|
||||||
state->err = ret;
|
state->err = ret;
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user