]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: event-log - Fix handling dropping parent prefixes beyond a drop at a higher...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 2 Sep 2020 09:15:33 +0000 (11:15 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 10 Sep 2020 12:43:56 +0000 (12:43 +0000)
commit205b9fd9f4167a0c2b9dc4823b43efb65ca5b2d5
tree0a34d5e6cf96c73823add1ce231a8cbb0a1c65dd
parentfbd4baa150dd22f7e9b0cbe99e8e896fdcaffb44
lib: event-log - Fix handling dropping parent prefixes beyond a drop at a higher level.

Before, the drop in the higher level became invisible to the lower
hiererarchies. For example:

parent1, parent2, parent3, parent4(drop one) yielded
"parent1: parent2: parent4: " as a prefix (which is still OK), whereas
parent1: parent2: parent3: parent4(drop one): leaf(drop 3) yielded
"parent1: leaf: ", while the expected prefix would be:
"leaf: ".

This means that the drop of one prefix by parent4 is ignored. Instead it should
apply that drop and operate on the prefixes that are still visible at the lowel
level, so the number of prefixes dropped should be additive, which is what this
commit changes.
src/lib/event-log.c
src/lib/test-event-log.c