]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Check for the existence of service executable after all.
authorTimo Sirainen <tss@iki.fi>
Sat, 13 Feb 2010 05:25:56 +0000 (07:25 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 13 Feb 2010 05:25:56 +0000 (07:25 +0200)
--HG--
branch : HEAD

src/master/service.c

index f8e5b39e4c67955d05406bd785a9962652aaca9b..c95069bf2b1450a2b26d7ec123633496b8214888 100644 (file)
@@ -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;
 }