From 24e61ac49db6add10ffa448f42202245fb883b96 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 1 Apr 2010 22:08:01 +0200 Subject: [PATCH] service: don't continue looking for syv init scripts after the first failure --- service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service.c b/service.c index 1aeb5fb..8018bd8 100644 --- 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; } -- 2.7.4