Skip to content

Commit

Permalink
mboxlist: ellie review - fix raclmodseq update handling
Browse files Browse the repository at this point in the history
  • Loading branch information
brong committed Jun 10, 2024
1 parent 3b7b533 commit 1948977
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions imap/mboxlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ static int mboxlist_update_raclmodseq_wrapper(const char *acluser,
// not a group, just update it
if (strncmp(acluser, "group:", 6)) {
if (strarray_find(touched_users, acluser, 0) >= 0) return 0;
strarray_add(touched_users, acluser);
strarray_append(touched_users, acluser);
return mboxlist_update_raclmodseq(acluser);
}

Expand All @@ -1047,11 +1047,11 @@ static int mboxlist_update_raclmodseq_wrapper(const char *acluser,
int r = 0;
int i;
for (i = 0; i < strarray_size(members); i++) {
const char *member = strarray_nth(members, i);
if (strarray_find(touched_users, member, 0) >= 0) return 0;
strarray_add(touched_users, member);
const char *member = strarray_nth(members, i);
if (strarray_find(touched_users, member, 0) >= 0) continue;
strarray_append(touched_users, member);
r = mboxlist_update_raclmodseq(member);
if (r) break;
if (r) break;
}

strarray_free(members);
Expand Down

0 comments on commit 1948977

Please sign in to comment.