From: Timo Sirainen Date: Tue, 22 Feb 2011 13:02:23 +0000 (+0200) Subject: config: Previous commit allows removing "0" from strlist/0/key=value output. X-Git-Tag: 2.0.10~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6851806b0d2e134d52757147e3fc242557ce8b4d;p=thirdparty%2Fdovecot%2Fcore.git config: Previous commit allows removing "0" from strlist/0/key=value output. --- diff --git a/src/config/config-request.c b/src/config/config-request.c index 40afd76d14..38fa7a10dd 100644 --- a/src/config/config-request.c +++ b/src/config/config-request.c @@ -286,16 +286,14 @@ settings_export(struct config_export_context *ctx, break; } hash_table_insert(ctx->keys, key, key); - ctx->callback(key, "0", CONFIG_KEY_LIST, ctx->context); strings = array_get(val, &count); i_assert(count % 2 == 0); for (i = 0; i < count; i += 2) { - str = p_strdup_printf(ctx->pool, "%s%s%c0%c%s", + str = p_strdup_printf(ctx->pool, "%s%s%c%s", str_c(ctx->prefix), def->key, SETTINGS_SEPARATOR, - SETTINGS_SEPARATOR, strings[i]); ctx->callback(str, strings[i+1], CONFIG_KEY_NORMAL, ctx->context);