chiark / gitweb /
service: don't continue looking for syv init scripts after the first failure
[elogind.git] / service.c
index 1aeb5fbf2b637cec04661b081500db891f8bc26e..8018bd847cbfe6b7c7c2f65f7c73876b07588d9f 100644 (file)
--- a/service.c
+++ b/service.c
@@ -510,7 +510,7 @@ static int service_load_sysv_name(Service *s, const char *name) {
                 r = service_load_sysv_path(s, path);
                 free(path);
 
-                if (r >= 0)
+                if (r != 0)
                         return r;
         }