dovecot-2.0-sslstream: master: Fail if service's executable is e...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:57:29 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/f1a0f9a66164
changeset: 10569:f1a0f9a66164
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jan 22 17:46:54 2010 +0200
description:
master: Fail if service's executable is empty.

diffstat:

1 file changed, 5 insertions(+)
src/master/master-settings.c |    5 +++++

diffs (15 lines):

diff -r 7fe775a404b1 -r f1a0f9a66164 src/master/master-settings.c
--- a/src/master/master-settings.c	Fri Jan 22 17:06:57 2010 +0200
+++ b/src/master/master-settings.c	Fri Jan 22 17:46:54 2010 +0200
@@ -371,6 +371,11 @@ master_settings_verify(void *_set, pool_
 	for (i = 0; i < count; i++) {
 		struct service_settings *service = services[i];
 
+		if (*service->executable == '\0') {
+			*error_r = t_strdup_printf("service(%s): "
+				"executable is empty", service->name);
+			return FALSE;
+		}
 		if (*service->executable != '/') {
 			service->executable =
 				p_strconcat(pool, set->libexec_dir, "/",


More information about the dovecot-cvs mailing list