# HG changeset patch # User Timo Sirainen # Date 1265500506 -7200 # Node ID 1ff706e7d95fe90b2efdff8e7c86081e75d296d8 # Parent 4a6dd192c8afcad0a70646e10d54098221a25cdd fs layout: We didn't properly prevent maildir_name from being used in mailbox names. diff -r 4a6dd192c8af -r 1ff706e7d95f src/lib-storage/list/mailbox-list-fs.c --- a/src/lib-storage/list/mailbox-list-fs.c Sat Feb 06 21:08:55 2010 +0200 +++ b/src/lib-storage/list/mailbox-list-fs.c Sun Feb 07 01:55:06 2010 +0200 @@ -76,8 +76,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;