dovecot-2.0: config: !include * added files in reverse sort order.

dovecot at dovecot.org dovecot at dovecot.org
Sat Apr 10 07:36:36 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/e25b0ecfc758
changeset: 11125:e25b0ecfc758
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Apr 10 07:36:31 2010 +0300
description:
config: !include * added files in reverse sort order.

diffstat:

 src/config/config-parser.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 454ea8812d54 -r e25b0ecfc758 src/config/config-parser.c
--- a/src/config/config-parser.c	Sat Apr 10 07:28:58 2010 +0300
+++ b/src/config/config-parser.c	Sat Apr 10 07:36:31 2010 +0300
@@ -409,8 +409,8 @@
 	}
 
 	/* iterate throuth the different files matching the globbing */
-	for (i = 0; i < globbers.gl_pathc; i++) {
-		if (settings_add_include(ctx, globbers.gl_pathv[i],
+	for (i = globbers.gl_pathc; i > 0; i--) {
+		if (settings_add_include(ctx, globbers.gl_pathv[i-1],
 					 ignore_errors, &error) < 0) {
 			ctx->error = p_strdup(ctx->pool, error);
 			return -1;


More information about the dovecot-cvs mailing list