dovecot-2.1: config: Don't warn that ssl_parameters_regenerate=0...

dovecot at dovecot.org dovecot at dovecot.org
Sat Dec 10 07:28:42 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/e28736bc8e09
changeset: 13836:e28736bc8e09
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Dec 10 07:28:22 2011 +0200
description:
config: Don't warn that ssl_parameters_regenerate=0 should have "hours" suffix.

diffstat:

 src/config/old-set-parser.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r ab696ead12cc -r e28736bc8e09 src/config/old-set-parser.c
--- a/src/config/old-set-parser.c	Sat Dec 10 07:05:56 2011 +0200
+++ b/src/config/old-set-parser.c	Sat Dec 10 07:28:22 2011 +0200
@@ -141,7 +141,7 @@
 		return TRUE;
 	}
 	if (strcmp(key, "ssl_parameters_regenerate") == 0 &&
-	    str_is_numeric(value, '\0')) {
+	    str_is_numeric(value, '\0') && strcmp(value, "0") != 0) {
 		obsolete(ctx, "%s should have 'hours' suffix", key);
 		config_apply_line(ctx, "", t_strconcat(key, "=", value, "h", NULL), NULL);
 		return TRUE;


More information about the dovecot-cvs mailing list