dovecot-1.1: maildir_set_deleted() return value was handled wron...

dovecot at dovecot.org dovecot at dovecot.org
Fri Mar 13 00:02:30 EET 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/daba537e6fb9
changeset: 8192:daba537e6fb9
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Mar 12 18:02:21 2009 -0400
description:
maildir_set_deleted() return value was handled wrong everywhere.
Changed it to work as it was used, since it seems to be clearer that way.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-storage/index/maildir/maildir-util.c |    4 ++--

diffs (18 lines):

diff -r 4eb0c253bf35 -r daba537e6fb9 src/lib-storage/index/maildir/maildir-util.c
--- a/src/lib-storage/index/maildir/maildir-util.c	Thu Mar 12 17:43:33 2009 -0400
+++ b/src/lib-storage/index/maildir/maildir-util.c	Thu Mar 12 18:02:21 2009 -0400
@@ -143,12 +143,12 @@ bool maildir_set_deleted(struct maildir_
 			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;
 }


More information about the dovecot-cvs mailing list