dovecot-1.2: fs layout: We didn't properly prevent maildir_name ...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Feb 7 01:55:29 EET 2010
details: http://hg.dovecot.org/dovecot-1.2/rev/1ff706e7d95f
changeset: 9544:1ff706e7d95f
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 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 @@ 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