]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
maildir: mailbox_create() was returning 1 instead of 0 on success.
authorTimo Sirainen <tss@iki.fi>
Mon, 5 Aug 2013 17:45:42 +0000 (20:45 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 5 Aug 2013 17:45:42 +0000 (20:45 +0300)
This broke acl plugin's check to copy the ACLs to the newly created mailbox.

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

index afd84a87b5a34f446e98a4ff8665dde3a7e963a7..bb15b696d01d5f8391721d004f7aca2e3fabb46a 100644 (file)
@@ -509,6 +509,7 @@ maildir_mailbox_create(struct mailbox *box, const struct mailbox_update *update,
 
        if ((ret = index_storage_mailbox_create(box, directory)) <= 0)
                return ret;
+       ret = 0;
        /* the maildir is created now. finish the creation as best as we can */
        if (create_maildir_subdirs(box, FALSE) < 0)
                ret = -1;