Hello community,

here is the log from the commit of package dovecot22 for openSUSE:Factory 
checked in at 2016-07-05 09:52:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dovecot22 (Old)
 and      /work/SRC/openSUSE:Factory/.dovecot22.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dovecot22"

Changes:
--------
--- /work/SRC/openSUSE:Factory/dovecot22/dovecot22.changes      2016-05-04 
08:20:30.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.dovecot22.new/dovecot22.changes 2016-07-05 
09:53:00.000000000 +0200
@@ -1,0 +2,7 @@
+Mon Jun 27 12:12:14 UTC 2016 - [email protected]
+
+- fixed crash in fts-lucene
+  dovecot-2.2.24-lucene-crashfix.patch
+  
https://github.com/dovecot/core/commit/0f801c1bd3d684c219d7f3b1e75f8b85f66f7951
+
+-------------------------------------------------------------------

New:
----
  dovecot-2.2.24-lucene-crashfix.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dovecot22.spec ++++++
--- /var/tmp/diff_new_pack.UgYRYy/_old  2016-07-05 09:53:02.000000000 +0200
+++ /var/tmp/diff_new_pack.UgYRYy/_new  2016-07-05 09:53:02.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package dovecot22
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -126,6 +126,7 @@
 Source7:        dovecot-2.2-pigeonhole.configfiles
 Patch:          dovecot-2.2.18-dont_use_etc_ssl_certs.patch
 Patch1:         dovecot-2.2.18-better_ssl_defaults.patch
+Patch2:         dovecot-2.2.24-lucene-crashfix.patch
 Summary:        IMAP and POP3 Server Written Primarily with Security in Mind
 License:        BSD-3-Clause and LGPL-2.1+ and MIT
 Group:          Productivity/Networking/Email/Servers
@@ -305,6 +306,7 @@
 %setup -q -n %{pkg_name}-%{dovecot_version} -a 1
 %patch -p1
 %patch1 -p1
+%patch2 -p1
 %{__gzip} -9v ChangeLog
 # Fix plugins dir.
 %{__sed} -i 's|#mail_plugin_dir = /usr/lib/dovecot|mail_plugin_dir = 
%{_libdir}/dovecot/modules|' doc/example-config/conf.d/10-mail.conf

++++++ dovecot-2.2.24-lucene-crashfix.patch ++++++
>From 0f801c1bd3d684c219d7f3b1e75f8b85f66f7951 Mon Sep 17 00:00:00 2001
From: Timo Sirainen <[email protected]>
Date: Wed, 22 Jun 2016 01:24:42 +0300
Subject: [PATCH] fts-lucene: Fixed crash on error or auto-rebuild conditions.

---
 src/plugins/fts-lucene/lucene-wrapper.cc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/plugins/fts-lucene/lucene-wrapper.cc 
b/src/plugins/fts-lucene/lucene-wrapper.cc
index 7185022..711e739 100644
--- a/src/plugins/fts-lucene/lucene-wrapper.cc
+++ b/src/plugins/fts-lucene/lucene-wrapper.cc
@@ -820,14 +820,15 @@ rescan_next(struct rescan_context *ctx, Document *doc)
 }
 
 static void
-rescan_clear_unseen_mailbox(struct rescan_context *rescan_ctx,
+rescan_clear_unseen_mailbox(struct lucene_index *index,
+                            struct rescan_context *rescan_ctx,
                            const char *vname,
                            const struct fts_index_header *hdr)
 {
        struct mailbox *box;
        struct mailbox_metadata metadata;
 
-       box = mailbox_alloc(rescan_ctx->index->list, vname,
+       box = mailbox_alloc(index->list, vname,
                            (enum mailbox_flags)0);
        if (mailbox_open(box) == 0 &&
            mailbox_get_metadata(box, MAILBOX_METADATA_GUID,
@@ -860,7 +861,7 @@ static void rescan_clear_unseen_mailboxes(struct 
lucene_index *index,
 
        iter = mailbox_list_iter_init(index->list, "*", iter_flags);
        while ((info = mailbox_list_iter_next(iter)) != NULL)
-               rescan_clear_unseen_mailbox(rescan_ctx, info->vname, &hdr);
+               rescan_clear_unseen_mailbox(index, rescan_ctx, info->vname, 
&hdr);
        (void)mailbox_list_iter_deinit(&iter);
 
        if (ns->prefix_len > 0 &&
@@ -868,7 +869,7 @@ static void rescan_clear_unseen_mailboxes(struct 
lucene_index *index,
                /* namespace prefix itself isn't returned by the listing */
                vname = t_strndup(index->list->ns->prefix,
                                  index->list->ns->prefix_len-1);
-               rescan_clear_unseen_mailbox(rescan_ctx, vname, &hdr);
+               rescan_clear_unseen_mailbox(index, rescan_ctx, vname, &hdr);
        }
 }
 

Reply via email to