[dovecot-cvs] dovecot/src/imap main.c,1.80,1.81

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


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

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/imap/main.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- main.c	30 Jul 2006 19:27:25 -0000	1.80
+++ main.c	10 Aug 2006 18:46:56 -0000	1.81
@@ -144,6 +144,13 @@
 	struct client *client;
 	const char *user, *str;
 
+	str = getenv("DOVECOT_VERSION");
+	if (str != NULL && strcmp(str, PACKAGE_VERSION) != 0) {
+		i_fatal("Dovecot version mismatch: "
+			"Master is v%s, imap is v"PACKAGE_VERSION" "
+			"(if you don't care, set version_ignore=yes)", str);
+	}
+
 	lib_signals_init();
         lib_signals_set_handler(SIGINT, TRUE, sig_die, NULL);
         lib_signals_set_handler(SIGTERM, TRUE, sig_die, NULL);



More information about the dovecot-cvs mailing list