dovecot-2.0: fs layout: We didn't properly prevent maildir_name ...

dovecot at dovecot.org dovecot at dovecot.org
Sun Feb 7 01:55:13 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/302a4f807276
changeset: 10654:302a4f807276
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Feb 07 01:55:06 2010 +0200
description:
fs layout: We didn't properly prevent maildir_name from being used in mailbox names.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-storage/list/mailbox-list-fs.c |    4 ++--

diffs (14 lines):

diff -r 5fe70b5da1b8 -r 302a4f807276 src/lib-storage/list/mailbox-list-fs.c
--- a/src/lib-storage/list/mailbox-list-fs.c	Sun Feb 07 01:50:49 2010 +0200
+++ b/src/lib-storage/list/mailbox-list-fs.c	Sun Feb 07 01:55:06 2010 +0200
@@ -78,8 +78,8 @@ fs_list_is_valid_common_nonfs(struct mai
 			if (maildir_len > 0 &&
 			    strncmp(p, list->set.maildir_name,
 				    maildir_len) == 0 &&
-			    (p[maildir_len-1] == '\0' ||
-			     p[maildir_len-1] == '/')) {
+			    (p[maildir_len] == '\0' ||
+			     p[maildir_len] == '/')) {
 				/* don't allow maildir_name to be used as part
 				   of the mailbox name */
 				return FALSE;


More information about the dovecot-cvs mailing list