]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
maildir_set_deleted() return value was handled wrong everywhere.
authorTimo Sirainen <tss@iki.fi>
Thu, 12 Mar 2009 22:02:39 +0000 (18:02 -0400)
committerTimo Sirainen <tss@iki.fi>
Thu, 12 Mar 2009 22:02:39 +0000 (18:02 -0400)
Changed it to work as it was used, since it seems to be clearer that way.

--HG--
branch : HEAD

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

index 92f21613d95174276dfb48547658ec888b7fccee..76b0e3757048a2a10d48ecaa2d8e2acd31ff9529 100644 (file)
@@ -144,12 +144,12 @@ bool maildir_set_deleted(struct maildir_mailbox *mbox)
                        mail_storage_set_critical(box->storage,
                                "stat(%s) failed: %m", mbox->path);
                }
-               return TRUE;
+               return FALSE;
        }
        /* maildir itself exists. create all of its subdirectories in case
           they got lost. */
        T_BEGIN {
                ret = maildir_create_subdirs(mbox);
        } T_END;
-       return ret < 0 ? TRUE : FALSE;
+       return ret < 0 ? FALSE : TRUE;
 }