chiark / gitweb /
bus: include connection name in credentials structure
[elogind.git] / src / core / unit.c
index 160a346d8652a5639d3d3c7dfe6f80c33ba4fc7a..e3b620603cf2c489ba10e5063a7e923a8bd5d2ee 100644 (file)
@@ -119,7 +119,7 @@ int unit_add_name(Unit *u, const char *text) {
         if (!s)
                 return -ENOMEM;
 
-        if (!unit_name_is_valid(s, false)) {
+        if (!unit_name_is_valid(s, TEMPLATE_INVALID)) {
                 r = -EINVAL;
                 goto fail;
         }