core: warn if people use the undocumented/depreacted ConditionNull=

Triggered by:

https://github.com/systemd/systemd/issues/11812
This commit is contained in:
Lennart Poettering 2019-03-04 17:51:54 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 3c37dadf62
commit 55dadc5c57
1 changed files with 2 additions and 0 deletions

View File

@ -2512,6 +2512,8 @@ int config_parse_unit_condition_null(
assert(rvalue);
assert(data);
log_syntax(unit, LOG_WARNING, filename, line, 0, "%s= is deprecated, please do not use.", lvalue);
if (isempty(rvalue)) {
/* Empty assignment resets the list */
*list = condition_free_list(*list);