From: Lennart Poettering Date: Mon, 4 Mar 2019 16:51:54 +0000 (+0100) Subject: core: warn if people use the undocumented/depreacted ConditionNull= X-Git-Tag: v242-rc1~196 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=55dadc5c57ef1379dbc984938d124508a454be55;p=thirdparty%2Fsystemd.git core: warn if people use the undocumented/depreacted ConditionNull= Triggered by: https://github.com/systemd/systemd/issues/11812 --- diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index a4efd309003..084c61d9820 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -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);