dovecot-1.2: acl: If RENAME failed because user didn't have perm...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 25 17:56:06 EEST 2010


details:   http://hg.dovecot.org/dovecot-1.2/rev/6f25b20b8367
changeset: 9572:6f25b20b8367
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 25 15:56:03 2010 +0100
description:
acl: If RENAME failed because user didn't have permissions, it still returned success to user.

diffstat:

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

diffs (12 lines):

diff -r d86c7d94f372 -r 6f25b20b8367 src/plugins/acl/acl-mailbox-list.c
--- a/src/plugins/acl/acl-mailbox-list.c	Tue May 25 15:23:32 2010 +0100
+++ b/src/plugins/acl/acl-mailbox-list.c	Tue May 25 15:56:03 2010 +0100
@@ -489,7 +489,7 @@
 			mailbox_list_set_error(list, MAIL_ERROR_NOTFOUND,
 				T_MAIL_ERR_MAILBOX_NOT_FOUND(oldname));
 		}
-		return 0;
+		return -1;
 	}
 
 	/* and create the new one under the parent mailbox */


More information about the dovecot-cvs mailing list