dovecot-2.0-sslstream: config: Handle chained dependencies.

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:56:07 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/0785c83ce8c4
changeset: 10272:0785c83ce8c4
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Nov 09 13:26:38 2009 -0500
description:
config: Handle chained dependencies.

diffstat:

1 file changed, 2 insertions(+), 4 deletions(-)
src/config/config-request.c |    6 ++----

diffs (16 lines):

diff -r 8984dc0e7c72 -r 0785c83ce8c4 src/config/config-request.c
--- a/src/config/config-request.c	Sun Nov 08 22:54:01 2009 -0800
+++ b/src/config/config-request.c	Mon Nov 09 13:26:38 2009 -0500
@@ -39,10 +39,8 @@ static bool parsers_are_connected(const 
 
 	if (root->dependencies != NULL) {
 		for (dep = root->dependencies; *dep != NULL; dep++) {
-			for (p = info; p != NULL; p = p->parent) {
-				if (p == *dep)
-					return TRUE;
-			}
+			if (parsers_are_connected(*dep, info))
+				return TRUE;
 		}
 	}
 	return FALSE;


More information about the dovecot-cvs mailing list