[dovecot-cvs] dovecot/src/dict main.c,1.13,1.14

tss at dovecot.org tss at dovecot.org
Thu Feb 22 14:36:08 UTC 2007


Update of /var/lib/cvs/dovecot/src/dict
In directory talvi:/tmp/cvs-serv15794/dict

Modified Files:
	main.c 
Log Message:
Don't compare to PACKAGE_VERSION in lib/ core directly, rather make
module_dir_load() have the version string as parameter. Plugin version
checks can be skipped with version_ignore=yes.



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/dict/main.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- main.c	16 Feb 2007 13:12:10 -0000	1.13
+++ main.c	22 Feb 2007 14:36:06 -0000	1.14
@@ -56,14 +56,14 @@
 
 static void main_init(void)
 {
-	const char *value, *path;
+	const char *version, *path;
 	int fd;
 
-	value = getenv("DOVECOT_VERSION");
-	if (value != NULL && strcmp(value, PACKAGE_VERSION) != 0) {
+	version = getenv("DOVECOT_VERSION");
+	if (version != NULL && strcmp(version, PACKAGE_VERSION) != 0) {
 		i_fatal("Dovecot version mismatch: "
 			"Master is v%s, dict is v"PACKAGE_VERSION" "
-			"(if you don't care, set version_ignore=yes)", value);
+			"(if you don't care, set version_ignore=yes)", version);
 	}
 
 	lib_signals_init();
@@ -78,7 +78,7 @@
 	dict_drivers_register_all();
 
 	modules = getenv("MODULE_DIR") == NULL ? NULL :
-		module_dir_load(getenv("MODULE_DIR"), NULL, TRUE);
+		module_dir_load(getenv("MODULE_DIR"), NULL, TRUE, version);
 	module_dir_init(modules);
 
 	path = getenv("DICT_LISTEN_FROM_FD");



More information about the dovecot-cvs mailing list