dovecot-2.1: lib-storage: Fixed error handling for mailbox_set_s...

dovecot at dovecot.org dovecot at dovecot.org
Wed Nov 16 19:48:06 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/4bdfe947a0b2
changeset: 13712:4bdfe947a0b2
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Nov 16 19:48:01 2011 +0200
description:
lib-storage: Fixed error handling for mailbox_set_subscribed()

diffstat:

 src/lib-storage/mail-storage.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r e0556ffd1527 -r 4bdfe947a0b2 src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c	Wed Nov 16 19:39:33 2011 +0200
+++ b/src/lib-storage/mail-storage.c	Wed Nov 16 19:48:01 2011 +0200
@@ -1154,7 +1154,11 @@
 
 		list = ns->list;
 	}
-	return mailbox_list_set_subscribed(list, subs_name, set);
+	if (mailbox_list_set_subscribed(list, subs_name, set) < 0) {
+		mail_storage_copy_list_error(box->storage, list);
+		return -1;
+	}
+	return 0;
 }
 
 struct mail_storage *mailbox_get_storage(const struct mailbox *box)


More information about the dovecot-cvs mailing list