chiark / gitweb /
core: ensure LSB Provides are handled correctly
[elogind.git] / src / core / service.c
index 4451d38eefdbd103b9d54712e902ec4b51fa64f4..fa8a1cb0390a79a1ff07551cee6c9fa4043d038e 100644 (file)
@@ -762,7 +762,7 @@ static int service_load_sysv_path(Service *s, const char *path) {
                                                 continue;
 
                                         if (unit_name_to_type(m) == UNIT_SERVICE)
-                                                r = unit_add_name(u, m);
+                                                r = unit_merge_by_name(u, m);
                                         else
                                                 /* NB: SysV targets
                                                  * which are provided