]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
If mbox wasn't indexed yet when it was being renamed, an extra error
authorTimo Sirainen <tss@iki.fi>
Thu, 13 Nov 2003 15:50:32 +0000 (17:50 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 13 Nov 2003 15:50:32 +0000 (17:50 +0200)
message was logged.

--HG--
branch : HEAD

src/lib-storage/index/mbox/mbox-storage.c

index d10c0a365a531ff9227dfda4faa5c6761c283645..045db04d29768876449887247efb974e37edbeeb 100644 (file)
@@ -686,7 +686,8 @@ static int mbox_rename_mailbox(struct mail_storage *storage,
        old_indexdir = mbox_get_index_dir(storage, oldname);
        new_indexdir = mbox_get_index_dir(storage, newname);
        if (old_indexdir != NULL) {
-               if (rename(old_indexdir, new_indexdir) < 0) {
+               if (rename(old_indexdir, new_indexdir) < 0 &&
+                   errno != ENOENT) {
                        mail_storage_set_critical(storage,
                                                  "rename(%s, %s) failed: %m",
                                                  old_indexdir, new_indexdir);