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

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


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

Modified Files:
      Tag: branch_1_0
	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.56.2.1
diff -u -d -r1.56 -r1.56.2.1
--- main.c	3 May 2006 22:58:53 -0000	1.56
+++ main.c	10 Aug 2006 18:46:18 -0000	1.56.2.1
@@ -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