dovecot-2.2: acl: Don't silently ignore permission error on expu...

dovecot at dovecot.org dovecot at dovecot.org
Wed Oct 3 03:21:08 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/3f55c6ca06f8
changeset: 15179:3f55c6ca06f8
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Oct 03 03:20:15 2012 +0300
description:
acl: Don't silently ignore permission error on expunge.

diffstat:

 src/plugins/acl/acl-mailbox.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r ab2abb987619 -r 3f55c6ca06f8 src/plugins/acl/acl-mailbox.c
--- a/src/plugins/acl/acl-mailbox.c	Wed Oct 03 03:19:20 2012 +0300
+++ b/src/plugins/acl/acl-mailbox.c	Wed Oct 03 03:20:15 2012 +0300
@@ -319,8 +319,7 @@
 		/* if we don't have permission, silently return success so
 		   users won't see annoying error messages in case their
 		   clients try automatic expunging. */
-		if (ret < 0)
-			acl_transaction_set_failure(_mail->transaction);
+		acl_transaction_set_failure(_mail->transaction);
 		return;
 	}
 


More information about the dovecot-cvs mailing list