dovecot-2.0: acl: Crashfix for handling namespaces that don't ha...

dovecot at dovecot.org dovecot at dovecot.org
Thu Aug 5 18:58:15 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/ddf343de34a4
changeset: 11943:ddf343de34a4
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Aug 05 16:58:12 2010 +0100
description:
acl: Crashfix for handling namespaces that don't have a paths.

diffstat:

 src/plugins/acl/acl-backend-vfile.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 827ebadc5995 -r ddf343de34a4 src/plugins/acl/acl-backend-vfile.c
--- a/src/plugins/acl/acl-backend-vfile.c	Thu Aug 05 16:19:54 2010 +0100
+++ b/src/plugins/acl/acl-backend-vfile.c	Thu Aug 05 16:58:12 2010 +0100
@@ -140,7 +140,7 @@
 		dir = mailbox_list_get_path(ns->list, name,
 					    MAILBOX_LIST_PATH_TYPE_MAILBOX);
 	}
-	if (name == NULL) {
+	if (name == NULL && dir != NULL) {
 		/* verify that the directory isn't same as INBOX's directory.
 		   this is mainly for Maildir. */
 		inbox = mailbox_list_get_path(ns->list, "INBOX",


More information about the dovecot-cvs mailing list