[dovecot-cvs] dovecot/src/master main.c, 1.90, 1.91 master-settings.c, 1.135, 1.136 master-settings.h, 1.87, 1.88

cras at dovecot.org cras at dovecot.org
Thu Aug 10 21:47:01 EEST 2006


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

Modified Files:
	main.c master-settings.c master-settings.h 
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/master/main.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -d -r1.90 -r1.91
--- main.c	6 Aug 2006 20:05:36 -0000	1.90
+++ main.c	10 Aug 2006 18:46:58 -0000	1.91
@@ -82,6 +82,8 @@
 		facility = LOG_MAIL;
 	env_put(t_strdup_printf("SYSLOG_FACILITY=%d", facility));
 
+	if (settings_root != NULL && !settings_root->defaults->version_ignore)
+		env_put("DOVECOT_VERSION="PACKAGE_VERSION);
 #ifdef DEBUG
 	if (gdb) env_put("GDB=1");
 #endif

Index: master-settings.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/master-settings.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -d -r1.135 -r1.136
--- master-settings.c	6 Aug 2006 20:37:17 -0000	1.135
+++ master-settings.c	10 Aug 2006 18:46:58 -0000	1.136
@@ -77,6 +77,7 @@
 	DEF(SET_BOOL, verbose_ssl),
 	DEF(SET_BOOL, shutdown_clients),
 	DEF(SET_BOOL, nfs_check),
+	DEF(SET_BOOL, version_ignore),
 
 	/* login */
 	DEF(SET_STR, login_dir),
@@ -283,6 +284,7 @@
 	MEMBER(verbose_ssl) FALSE,
 	MEMBER(shutdown_clients) TRUE,
 	MEMBER(nfs_check) TRUE,
+	MEMBER(version_ignore) FALSE,
 
 	/* login */
 	MEMBER(login_dir) "login",

Index: master-settings.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/master-settings.h,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- master-settings.h	6 Aug 2006 20:05:36 -0000	1.87
+++ master-settings.h	10 Aug 2006 18:46:58 -0000	1.88
@@ -38,6 +38,7 @@
 	bool verbose_ssl;
 	bool shutdown_clients;
 	bool nfs_check;
+	bool version_ignore;
 
 	/* login */
 	const char *login_dir;



More information about the dovecot-cvs mailing list