Mercurial > dovecot > core-2.2
changeset 11651:243166e7dd2d HEAD
mdbox: Don't fail storage rebuild just because storage/ directory doesn't exist.
It may be an account for a new user that doesn't yet have any mails.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 28 Jun 2010 21:58:42 +0100 |
parents | 267ad2b32276 |
children | ad122febbf26 |
files | src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c |
diffstat | 1 files changed, 0 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c Mon Jun 28 21:34:45 2010 +0100 +++ b/src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c Mon Jun 28 21:58:42 2010 +0100 @@ -887,20 +887,8 @@ struct mdbox_map_atomic_context *atomic) { struct mdbox_storage_rebuild_context *ctx; - struct stat st; int ret; - if (stat(storage->storage_dir, &st) < 0) { - if (errno == ENOENT) { - /* no multi-dbox files */ - return 0; - } - - mail_storage_set_critical(&storage->storage.storage, - "stat(%s) failed: %m", storage->storage_dir); - return -1; - } - ctx = mdbox_storage_rebuild_init(storage, atomic); ret = mdbox_storage_rebuild_scan(ctx); mdbox_storage_rebuild_deinit(ctx);