ctdb-common: Fix empty value handling in conf
authorAmitay Isaacs <amitay@gmail.com>
Thu, 25 Jul 2019 05:14:32 +0000 (15:14 +1000)
committerMartin Schwenke <martins@samba.org>
Fri, 26 Jul 2019 03:34:16 +0000 (03:34 +0000)
commitefd0c45a8b152eb4716193bea6cf95e9e0b97d8b
treef3138d8a5484b592e81c0947abee36023600464a
parent242ea955e672799c45aba47f454900a5a52ce9f6
ctdb-common: Fix empty value handling in conf

In tini, allow_empty_value=false causes the parser to ignore the lines
without '=' sign, but lines with nothing after '=' sign are allowed and
cause empty string ("") to be passed as a value.

This is counter-intuitive, so conf requires special handling for empty
values (which are treated as invalid).

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/common/conf.c