dovecot-2.2: doveconf: Don't if _password value is empty, don't ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Sep 24 17:30:11 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/bf64724225e9
changeset: 19217:bf64724225e9
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Sep 24 20:28:51 2015 +0300
description:
doveconf: Don't if _password value is empty, don't hide it.

diffstat:

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

diffs (12 lines):

diff -r 1e4d2306f1f3 -r bf64724225e9 src/config/doveconf.c
--- a/src/config/doveconf.c	Thu Sep 24 19:40:41 2015 +0300
+++ b/src/config/doveconf.c	Thu Sep 24 20:28:51 2015 +0300
@@ -302,7 +302,7 @@
 		value = strchr(key, '=');
 		o_stream_nsend(output, key, value-key);
 		o_stream_nsend_str(output, " = ");
-		if (hide_passwords &&
+		if (hide_passwords && value[1] != '\0' &&
 		    value-key > 9 && strncmp(value-9, "_password", 9) == 0) {
 			o_stream_nsend_str(output, " # hidden, use -P to show it");
 		} else if (!value_need_quote(value+1))


More information about the dovecot-cvs mailing list