[dovecot-cvs] dovecot/src/login-common main.c,1.35,1.36
cras at dovecot.org
cras at dovecot.org
Thu Aug 10 21:47:01 EEST 2006
Update of /var/lib/cvs/dovecot/src/login-common
In directory talvi:/tmp/cvs-serv17661/login-common
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/login-common/main.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- main.c 6 Aug 2006 20:35:07 -0000 1.35
+++ main.c 10 Aug 2006 18:46:59 -0000 1.36
@@ -228,6 +228,13 @@
{
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);
lib_signals_set_handler(SIGTERM, TRUE, sig_die, NULL);
More information about the dovecot-cvs
mailing list