mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
core: warn if people use the undocumented/depreacted ConditionNull=
Triggered by: https://github.com/systemd/systemd/issues/11812
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
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);
|
||||
|
||||
Reference in New Issue
Block a user