[dovecot-cvs] dovecot/src/deliver deliver.c,1.61,1.62
tss at dovecot.org
tss at dovecot.org
Tue Apr 3 08:42:36 EEST 2007
Update of /var/lib/cvs/dovecot/src/deliver
In directory talvi:/tmp/cvs-serv9111
Modified Files:
deliver.c
Log Message:
Load plugins before chrooting.
Index: deliver.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/deliver.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- deliver.c 30 Mar 2007 13:40:30 -0000 1.61
+++ deliver.c 3 Apr 2007 05:42:33 -0000 1.62
@@ -580,6 +580,21 @@
if (getenv("MAIL_DEBUG") != NULL)
env_put("DEBUG=1");
+ if (getenv("MAIL_PLUGINS") == NULL)
+ modules = NULL;
+ else {
+ const char *plugin_dir = getenv("MAIL_PLUGIN_DIR");
+ const char *version;
+
+ if (plugin_dir == NULL)
+ plugin_dir = MODULEDIR"/lda";
+
+ version = getenv("VERSION_IGNORE") != NULL ?
+ NULL : PACKAGE_VERSION;
+ modules = module_dir_load(plugin_dir, getenv("MAIL_PLUGINS"),
+ TRUE, version);
+ }
+
if (destination != NULL) {
auth_socket = getenv("AUTH_SOCKET_PATH");
if (auth_socket == NULL)
@@ -642,21 +657,7 @@
mail_env = expand_mail_env(mail_env, table);
}
- if (getenv("MAIL_PLUGINS") == NULL)
- modules = NULL;
- else {
- const char *plugin_dir = getenv("MAIL_PLUGIN_DIR");
- const char *version;
-
- if (plugin_dir == NULL)
- plugin_dir = MODULEDIR"/lda";
-
- version = getenv("VERSION_IGNORE") != NULL ?
- NULL : PACKAGE_VERSION;
- modules = module_dir_load(plugin_dir, getenv("MAIL_PLUGINS"),
- TRUE, version);
- module_dir_init(modules);
- }
+ module_dir_init(modules);
/* FIXME: how should we handle namespaces? */
mail_storage_parse_env(&flags, &lock_method);
More information about the dovecot-cvs
mailing list