From: Timo Sirainen Date: Sat, 10 Dec 2011 05:28:22 +0000 (+0200) Subject: config: Don't warn that ssl_parameters_regenerate=0 should have "hours" suffix. X-Git-Tag: 2.1.rc2~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b033f0a676f7accb2cd43bb12d3e116990df4ec8;p=thirdparty%2Fdovecot%2Fcore.git config: Don't warn that ssl_parameters_regenerate=0 should have "hours" suffix. --- diff --git a/src/config/old-set-parser.c b/src/config/old-set-parser.c index c20208f80e..ef187ff844 100644 --- a/src/config/old-set-parser.c +++ b/src/config/old-set-parser.c @@ -141,7 +141,7 @@ old_settings_handle_root(struct config_parser_context *ctx, 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;