core: warn if people use the undocumented/depreacted ConditionNull=
Triggered by: https://github.com/systemd/systemd/issues/11812
This commit is contained in:
parent
3c37dadf62
commit
55dadc5c57
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue