]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mdbox: Don't fail storage rebuild just because storage/ directory doesn't exist.
authorTimo Sirainen <tss@iki.fi>
Mon, 28 Jun 2010 20:58:42 +0000 (21:58 +0100)
committerTimo Sirainen <tss@iki.fi>
Mon, 28 Jun 2010 20:58:42 +0000 (21:58 +0100)
It may be an account for a new user that doesn't yet have any mails.

--HG--
branch : HEAD

src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c

index accb07ec9047db5e0d22f51b5db8246bb5944546..f5b4e0a13a6edc2900c449dd355c0b4b2cc17dec 100644 (file)
@@ -887,20 +887,8 @@ int mdbox_storage_rebuild_in_context(struct mdbox_storage *storage,
                                     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);