dovecot-2.0: config: Give master service settings to all requests.
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 6 22:01:58 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/c57038025171
changeset: 9238:c57038025171
user: Timo Sirainen <tss at iki.fi>
date: Wed May 06 14:58:31 2009 -0400
description:
config: Give master service settings to all requests.
diffstat:
2 files changed, 7 insertions(+)
src/config/config-request.c | 5 +++++
src/lib-master/master-service-settings.h | 2 ++
diffs (34 lines):
diff -r 30d771700232 -r c57038025171 src/config/config-request.c
--- a/src/config/config-request.c Wed May 06 14:33:06 2009 -0400
+++ b/src/config/config-request.c Wed May 06 14:58:31 2009 -0400
@@ -6,6 +6,7 @@
#include "hash.h"
#include "ostream.h"
#include "settings-parser.h"
+#include "master-service-settings.h"
#include "all-settings.h"
#include "config-request.h"
@@ -51,6 +52,10 @@ config_setting_parser_is_in_service(stru
if (strcmp(list->module_name, service) == 0)
return TRUE;
+ if (list->root == &master_service_setting_parser_info) {
+ /* everyone wants master service settings */
+ return TRUE;
+ }
for (l = config_setting_parsers; l->module_name != NULL; l++) {
if (strcmp(l->module_name, service) != 0)
diff -r 30d771700232 -r c57038025171 src/lib-master/master-service-settings.h
--- a/src/lib-master/master-service-settings.h Wed May 06 14:33:06 2009 -0400
+++ b/src/lib-master/master-service-settings.h Wed May 06 14:58:31 2009 -0400
@@ -13,6 +13,8 @@ struct master_service_settings {
bool version_ignore;
};
+extern struct setting_parser_info master_service_setting_parser_info;
+
int master_service_settings_read(struct master_service *service,
const struct setting_parser_info *roots[],
const struct dynamic_settings_parser *dyn_parsers,
More information about the dovecot-cvs
mailing list