dovecot-1.2: virtual: Error handling fix. Don't expose hidden na...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 2 22:09:01 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/bfa4b2c29dc2
changeset: 9117:bfa4b2c29dc2
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 02 15:08:56 2009 -0400
description:
virtual: Error handling fix. Don't expose hidden namespace names.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/plugins/virtual/virtual-storage.c |    2 +-

diffs (12 lines):

diff -r 9ae55b68cf61 -r bfa4b2c29dc2 src/plugins/virtual/virtual-storage.c
--- a/src/plugins/virtual/virtual-storage.c	Mon Jun 01 14:37:18 2009 -0400
+++ b/src/plugins/virtual/virtual-storage.c	Tue Jun 02 15:08:56 2009 -0400
@@ -45,7 +45,7 @@ void virtual_copy_error(struct mail_stor
 	enum mail_error error;
 
 	str = mail_storage_get_last_error(src, &error);
-	if ((src->ns->flags & NAMESPACE_FLAG_HIDDEN) != 0) {
+	if ((src->ns->flags & NAMESPACE_FLAG_HIDDEN) == 0) {
 		str = t_strdup_printf("%s (namespace %s)", str,
 				      src->ns->prefix);
 	}


More information about the dovecot-cvs mailing list