# HG changeset patch # User Timo Sirainen # Date 1265500506 -7200 # Node ID 302a4f807276af6a1414af935140e979506417be # Parent 5fe70b5da1b84900274db71a683a8d7e91f9c2f6 fs layout: We didn't properly prevent maildir_name from being used in mailbox names. 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 @@ 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;