dovecot-2.0: Don't fail with auth_cache_size=0
dovecot at dovecot.org
dovecot at dovecot.org
Wed Sep 8 16:58:54 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/52e197994a55
changeset: 12089:52e197994a55
user: Timo Sirainen <tss at iki.fi>
date: Wed Sep 08 14:58:31 2010 +0100
description:
Don't fail with auth_cache_size=0
diffstat:
src/auth/auth-settings.c | 2 +-
src/config/old-set-parser.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 77075d202fc1 -r 52e197994a55 src/auth/auth-settings.c
--- a/src/auth/auth-settings.c Wed Sep 08 14:56:15 2010 +0100
+++ b/src/auth/auth-settings.c Wed Sep 08 14:58:31 2010 +0100
@@ -266,7 +266,7 @@
if (set->debug)
set->verbose = TRUE;
- if (set->cache_size < 1024) {
+ if (set->cache_size > 0 && set->cache_size < 1024) {
/* probably a configuration error.
older versions used megabyte numbers */
*error_r = t_strdup_printf("auth_cache_size value is too small "
diff -r 77075d202fc1 -r 52e197994a55 src/config/old-set-parser.c
--- a/src/config/old-set-parser.c Wed Sep 08 14:56:15 2010 +0100
+++ b/src/config/old-set-parser.c Wed Sep 08 14:58:31 2010 +0100
@@ -409,7 +409,7 @@
return TRUE;
}
if (strcmp(key, "auth_cache_size") == 0 &&
- str_to_uoff(value, &size) == 0 && size < 1024) {
+ str_to_uoff(value, &size) == 0 && size > 0 && size < 1024) {
obsolete(ctx, "auth_cache_size value no longer defaults to "
"megabytes. Use %sM", value);
config_apply_line(ctx, key,
More information about the dovecot-cvs
mailing list