]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: warn if people use the undocumented/depreacted ConditionNull=
authorLennart Poettering <lennart@poettering.net>
Mon, 4 Mar 2019 16:51:54 +0000 (17:51 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 5 Mar 2019 12:54:20 +0000 (13:54 +0100)
Triggered by:

https://github.com/systemd/systemd/issues/11812

src/core/load-fragment.c

index a4efd309003f5bd70ce567a5b298a2ea6cca4108..084c61d9820e1c6745445f3797992df3644a277a 100644 (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);