dovecot-2.0: lib-storage: Use MAIL_STORAGE_FLAG_NO_AUTOVERIFY fo...

dovecot at dovecot.org dovecot at dovecot.org
Fri Oct 15 16:57:40 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/2d6396330099
changeset: 12272:2d6396330099
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Oct 15 14:57:36 2010 +0100
description:
lib-storage: Use MAIL_STORAGE_FLAG_NO_AUTOVERIFY for creating shared namespace storages.
This avoids failing storage creation for nonexistent users. Previous failure
made it possible for logged in users to figure out what other usernames
existed on the system.

diffstat:

 src/lib-storage/index/shared/shared-storage.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 0cc916fc09f9 -r 2d6396330099 src/lib-storage/index/shared/shared-storage.c
--- a/src/lib-storage/index/shared/shared-storage.c	Fri Oct 15 14:56:05 2010 +0100
+++ b/src/lib-storage/index/shared/shared-storage.c	Fri Oct 15 14:57:36 2010 +0100
@@ -286,7 +286,8 @@
 		p_strdup(user->pool, storage->unexpanded_location);
 	new_ns->unexpanded_set = unexpanded_ns_set;
 
-	if (mail_storage_create(new_ns, NULL, _storage->flags, &error) < 0) {
+	if (mail_storage_create(new_ns, NULL, _storage->flags |
+				MAIL_STORAGE_FLAG_NO_AUTOVERIFY, &error) < 0) {
 		mailbox_list_set_critical(list, "Namespace '%s': %s",
 					  new_ns->prefix, error);
 		mail_namespace_destroy(new_ns);


More information about the dovecot-cvs mailing list