[dovecot-cvs] dovecot/src/auth main.c,1.56,1.57

cras at dovecot.org cras at dovecot.org
Thu Aug 10 21:46:56 EEST 2006


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv17661/auth

Modified Files:
	main.c 
Log Message:
Require that master's version number matches the child's, unless
version_ignore=yes. Usually it's an accidental installation problem if the
version numbers don't match.



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/main.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- main.c	3 May 2006 22:58:53 -0000	1.56
+++ main.c	10 Aug 2006 18:46:53 -0000	1.57
@@ -206,6 +206,14 @@
 static void main_init(bool nodaemon)
 {
 	struct auth_master_listener *listener;
+	const char *value;
+
+	value = getenv("DOVECOT_VERSION");
+	if (value != NULL && strcmp(value, PACKAGE_VERSION) != 0) {
+		i_fatal("Dovecot version mismatch: "
+			"Master is v%s, dovecot-auth is v"PACKAGE_VERSION" "
+			"(if you don't care, set version_ignore=yes)", value);
+	}
 
         process_start_time = ioloop_time;
 



More information about the dovecot-cvs mailing list