changeset 12789:2480413a80fb

config: Fixed converting old auth/mail_process_size settings.
author Timo Sirainen <tss@iki.fi>
date Tue, 22 Feb 2011 15:44:42 +0200
parents e7fa2906f875
children 2762bb5a7481
files src/config/old-set-parser.c
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/config/old-set-parser.c	Tue Feb 22 15:02:23 2011 +0200
+++ b/src/config/old-set-parser.c	Tue Feb 22 15:44:42 2011 +0200
@@ -357,7 +357,8 @@
 		return TRUE;
 	}
 	if (strcmp(key, "login_process_size") == 0) {
-		config_apply_login_set(ctx, old_section, key, "vsz_limit", value);
+		config_apply_login_set(ctx, old_section, key, "vsz_limit",
+				       t_strconcat(value, " M", NULL));
 		return TRUE;
 	}
 	if (strcmp(key, "login_process_per_connection") == 0) {
@@ -378,7 +379,8 @@
 		return TRUE;
 	}
 	if (strcmp(key, "login_process_size") == 0) {
-		config_apply_login_set(ctx, old_section, key, "vsz_limit", value);
+		config_apply_login_set(ctx, old_section, key, "vsz_limit",
+				       t_strconcat(value, " M", NULL));
 		return TRUE;
 	}
 
@@ -391,7 +393,8 @@
 		return TRUE;
 	}
 	if (strcmp(key, "mail_process_size") == 0) {
-		config_apply_mail_set(ctx, old_section, key, "vsz_limit", value);
+		config_apply_mail_set(ctx, old_section, key, "vsz_limit",
+				      t_strconcat(value, " M", NULL));
 		return TRUE;
 	}
 	if (strcmp(key, "mail_drop_priv_before_exec") == 0) {
@@ -409,7 +412,8 @@
 		return TRUE;
 	}
 	if (strcmp(key, "auth_process_size") == 0) {
-		config_apply_auth_set(ctx, key, "vsz_limit", value);
+		config_apply_auth_set(ctx, key, "vsz_limit",
+				      t_strconcat(value, " M", NULL));
 		return TRUE;
 	}
 	if (strcmp(key, "auth_user") == 0) {