dovecot-1.2: login process: Check Dovecot version mismatch earlier.

dovecot at dovecot.org dovecot at dovecot.org
Wed Mar 25 00:01:34 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/ad7013e631d5
changeset: 8855:ad7013e631d5
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Mar 24 18:01:30 2009 -0400
description:
login process: Check Dovecot version mismatch earlier.

diffstat:

1 file changed, 7 insertions(+), 7 deletions(-)
src/login-common/main.c |   14 +++++++-------

diffs (31 lines):

diff -r ecf7b65fdda1 -r ad7013e631d5 src/login-common/main.c
--- a/src/login-common/main.c	Tue Mar 24 17:19:38 2009 -0400
+++ b/src/login-common/main.c	Tue Mar 24 18:01:30 2009 -0400
@@ -256,6 +256,13 @@ static void drop_privileges(unsigned int
 {
 	const char *value;
 
+	value = getenv("DOVECOT_VERSION");
+	if (value != NULL && strcmp(value, PACKAGE_VERSION) != 0) {
+		i_fatal("Dovecot version mismatch: "
+			"Master is v%s, login is v"PACKAGE_VERSION" "
+			"(if you don't care, set version_ignore=yes)", value);
+	}
+
 	if (!is_inetd)
 		i_set_failure_internal();
 	else {
@@ -301,13 +308,6 @@ static void main_init(void)
 static void main_init(void)
 {
 	const char *value;
-
-	value = getenv("DOVECOT_VERSION");
-	if (value != NULL && strcmp(value, PACKAGE_VERSION) != 0) {
-		i_fatal("Dovecot version mismatch: "
-			"Master is v%s, login is v"PACKAGE_VERSION" "
-			"(if you don't care, set version_ignore=yes)", value);
-	}
 
 	lib_signals_init();
         lib_signals_set_handler(SIGINT, TRUE, sig_die, NULL);


More information about the dovecot-cvs mailing list