dovecot-2.0: acl: Fixed removing entries from shared dict when r...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Sep 8 19:02:52 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/d377c610b19d
changeset: 12093:d377c610b19d
user: Timo Sirainen <tss at iki.fi>
date: Wed Sep 08 17:02:25 2010 +0100
description:
acl: Fixed removing entries from shared dict when rebuilding
diffstat:
src/plugins/acl/acl-lookup-dict.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 711b5f193f04 -r d377c610b19d src/plugins/acl/acl-lookup-dict.c
--- a/src/plugins/acl/acl-lookup-dict.c Wed Sep 08 15:35:32 2010 +0100
+++ b/src/plugins/acl/acl-lookup-dict.c Wed Sep 08 17:02:25 2010 +0100
@@ -155,9 +155,9 @@
prefix_len = strlen(prefix);
iter = dict_iterate_init(dict->dict, prefix, DICT_ITERATE_FLAG_RECURSE);
while (dict_iterate(iter, &key, &value)) {
- /* prefix/$dest/$source */
+ /* prefix/$type/$dest/$source */
key += prefix_len;
- p = strchr(key, '/');
+ p = strrchr(key, '/');
if (p != NULL && strcmp(p + 1, username) == 0) {
key = t_strdup_until(key, p);
array_append(&old_ids_arr, &key, 1);
More information about the dovecot-cvs
mailing list