dovecot-1.2: maildir: Fixed error handling when trying to open n...

dovecot at dovecot.org dovecot at dovecot.org
Mon Aug 3 06:22:45 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/f41f451984d7
changeset: 9277:f41f451984d7
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Aug 02 23:07:01 2009 -0400
description:
maildir: Fixed error handling when trying to open non-existing namespace prefix.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/maildir/maildir-storage.c |    2 +-

diffs (12 lines):

diff -r 13fa572535f0 -r f41f451984d7 src/lib-storage/index/maildir/maildir-storage.c
--- a/src/lib-storage/index/maildir/maildir-storage.c	Sun Aug 02 23:01:04 2009 -0400
+++ b/src/lib-storage/index/maildir/maildir-storage.c	Sun Aug 02 23:07:01 2009 -0400
@@ -544,7 +544,7 @@ maildir_mailbox_open(struct mail_storage
 			return NULL;
 
 		return maildir_open(storage, name, flags);
-	} else if (errno == ENOENT) {
+	} else if (*name == '\0' || errno == ENOENT) {
 		mail_storage_set_error(_storage, MAIL_ERROR_NOTFOUND,
 			T_MAIL_ERR_MAILBOX_NOT_FOUND(name));
 		return NULL;


More information about the dovecot-cvs mailing list