Mercurial > dovecot > core-2.2
diff src/lib-storage/index/dbox-multi/mdbox-storage.c @ 22291:5a81b1690625
sdbox: Don't create index directory when trying to open nonexistent mailboxes
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Tue, 27 Jun 2017 16:55:34 +0300 |
parents | 2e2563132d5f |
children | d86a691543b4 |
line wrap: on
line diff
--- a/src/lib-storage/index/dbox-multi/mdbox-storage.c Fri Jun 30 13:56:54 2017 +0300 +++ b/src/lib-storage/index/dbox-multi/mdbox-storage.c Tue Jun 27 16:55:34 2017 +0300 @@ -171,6 +171,8 @@ { struct mdbox_mailbox *mbox = (struct mdbox_mailbox *)box; + if (dbox_mailbox_check_existence(box) < 0) + return -1; if (dbox_mailbox_open(box) < 0) return -1;