int mail_storage_service_read_settings(struct mail_storage_service_ctx *ctx,
const struct mail_storage_service_input *input,
- pool_t pool ATTR_UNUSED,
const struct setting_parser_info **user_info_r,
const struct setting_parser_context **parser_r,
const char **error_r)
mail_storage_service_seteuid_root();
}
- if (mail_storage_service_read_settings(ctx, input, user_pool,
- &user_info, &set_parser,
- error_r) < 0) {
+ if (mail_storage_service_read_settings(ctx, input, &user_info,
+ &set_parser, error_r) < 0) {
if (ctx->config_permission_denied) {
/* just restart and maybe next time we will open the
config socket before dropping privileges */
const struct mail_user_settings *user_set;
const struct setting_parser_context *set_parser;
const char *error;
- pool_t temp_pool;
if (ctx->conn != NULL)
return;
- temp_pool = pool_alloconly_create("service all settings", 4096);
- if (mail_storage_service_read_settings(ctx, input, temp_pool,
- &user_info, &set_parser,
- &error) < 0)
+ if (mail_storage_service_read_settings(ctx, input, &user_info,
+ &set_parser, &error) < 0)
i_fatal("%s", error);
user_set = settings_parser_get_root_set(set_parser,
&mail_user_setting_parser_info);
mail_storage_service_first_init(ctx, set_parser, user_set, ctx->flags);
- pool_unref(&temp_pool);
}
static int
struct auth_master_connection *conn);
int mail_storage_service_read_settings(struct mail_storage_service_ctx *ctx,
const struct mail_storage_service_input *input,
- pool_t pool,
const struct setting_parser_info **user_info_r,
const struct setting_parser_context **parser_r,
const char **error_r) ATTR_NULL(2);
const struct setting_parser_context *set_parser;
const struct mail_user_settings *user_set;
const char *value, *error;
- pool_t pool;
clients = connection_list_init(&client_set, &client_vfuncs);
storage_service = mail_storage_service_init(master_service, set_roots,
input.username = "";
quota_status_pool = pool_alloconly_create("quota status settings", 512);
- pool = pool_alloconly_create("service all settings", 4096);
- if (mail_storage_service_read_settings(storage_service, &input, pool,
+ if (mail_storage_service_read_settings(storage_service, &input,
&user_info, &set_parser,
&error) < 0)
i_fatal("%s", error);
value = mail_user_set_plugin_getenv(user_set, "quota_status_nouser");
nouser_reply = p_strdup(quota_status_pool,
value != NULL ? value : "REJECT Unknown user");
- pool_unref(&pool);
}
static void main_deinit(void)