From 832bcb7bea1f6b67bf28527896a7ee6c977b7a0f Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 13 Feb 2010 07:25:56 +0200 Subject: [PATCH] master: Check for the existence of service executable after all. --HG-- branch : HEAD --- src/master/service.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/master/service.c b/src/master/service.c index f8e5b39e4c..c95069bf2b 100644 --- a/src/master/service.c +++ b/src/master/service.c @@ -307,12 +307,10 @@ service_create(pool_t pool, const struct service_settings *set, return NULL; } - if (array_count(&service->listeners) > 0) { - if (access(t_strcut(service->executable, ' '), X_OK) < 0) { - *error_r = t_strdup_printf("access(%s) failed: %m", - t_strcut(service->executable, ' ')); - return NULL; - } + if (access(t_strcut(service->executable, ' '), X_OK) < 0) { + *error_r = t_strdup_printf("access(%s) failed: %m", + t_strcut(service->executable, ' ')); + return NULL; } return service; } -- 2.47.3