Gentoo Archives: gentoo-commits

From: "Wolfram Schlich (wschlich)" <wschlich@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-mail/dovecot/files: dovecot-1.1.4-expire.patch
Date: Tue, 07 Oct 2008 07:30:15
Message-Id: E1Kn71I-0006Jg-Sz@stork.gentoo.org
1 wschlich 08/10/07 07:30:12
2
3 Added: dovecot-1.1.4-expire.patch
4 Log:
5 add patch for expire plugin crash, removed old version
6 (Portage version: 2.2_rc8/cvs/Linux 2.6.24-gentoo-r5-1 i686)
7
8 Revision Changes Path
9 1.1 net-mail/dovecot/files/dovecot-1.1.4-expire.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dovecot/files/dovecot-1.1.4-expire.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dovecot/files/dovecot-1.1.4-expire.patch?rev=1.1&content-type=text/plain
13
14 Index: dovecot-1.1.4-expire.patch
15 ===================================================================
16
17 # HG changeset patch
18 # User Timo Sirainen <tss@×××.fi>
19 # Date 1223320000 -10800
20 # Node ID 96dfe8fb57b8e061b4339cbf3d50fc8067dc50ec
21 # Parent 9f95b3c28cc392b6c9534a69e6a2aa75ea54f5eb
22 Expire plugin was crashing because of previous change.
23
24 --- a/src/plugins/expire/expire-plugin.c Mon Oct 06 19:24:03 2008 +0300
25 +++ b/src/plugins/expire/expire-plugin.c Mon Oct 06 22:06:40 2008 +0300
26 @@ -99,6 +99,7 @@ expire_mailbox_transaction_commit(struct
27 {
28 struct expire_mailbox *xpr_box = EXPIRE_CONTEXT(t->box);
29 struct expire_transaction_context *xt = EXPIRE_CONTEXT(t);
30 + struct mailbox *box = t->box;
31 time_t new_stamp;
32 bool update_dict = FALSE;
33 int ret;
34 @@ -117,13 +118,14 @@ expire_mailbox_transaction_commit(struct
35 i_free(xt);
36 return -1;
37 }
38 + /* transaction is freed now */
39 + t = NULL;
40
41 if (xt->first_expunged || xt->saves) T_BEGIN {
42 const char *key, *value;
43
44 key = t_strconcat(DICT_PATH_SHARED, expire.username, "/",
45 - t->box->storage->ns->prefix,
46 - t->box->name, NULL);
47 + box->storage->ns->prefix, box->name, NULL);
48 if (!xt->first_expunged && xt->saves) {
49 /* saved new mails. dict needs to be updated only if
50 this is the first mail in the database */