chiark / gitweb /
service: don't continue looking for syv init scripts after the first failure
authorLennart Poettering <lennart@poettering.net>
Thu, 1 Apr 2010 20:08:01 +0000 (22:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Apr 2010 20:08:01 +0000 (22:08 +0200)
service.c

index 1aeb5fb..8018bd8 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);
 
                 r = service_load_sysv_path(s, path);
                 free(path);
 
-                if (r >= 0)
+                if (r != 0)
                         return r;
         }
 
                         return r;
         }