From: Lennart Poettering Date: Thu, 1 Apr 2010 20:08:01 +0000 (+0200) Subject: service: don't continue looking for syv init scripts after the first failure X-Git-Tag: v1~672 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=inline;h=24e61ac49db6add10ffa448f42202245fb883b96;p=elogind.git service: don't continue looking for syv init scripts after the first failure --- diff --git a/service.c b/service.c index 1aeb5fbf2..8018bd847 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; }