diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-10 15:14:08 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-10 15:14:08 +0000 |
commit | cd2c647df8aa8d12a6ee329efb4459b67567e9bf (patch) | |
tree | 81f4e3bf93dee0da1528ddcd54d0fddddb20babe | |
parent | 3c24c45872fd745d8f55015940472e4f583ef764 (diff) | |
download | alpine_aports-cd2c647df8aa8d12a6ee329efb4459b67567e9bf.tar.bz2 alpine_aports-cd2c647df8aa8d12a6ee329efb4459b67567e9bf.tar.xz alpine_aports-cd2c647df8aa8d12a6ee329efb4459b67567e9bf.zip |
main/dovecot: dont crash when we rotate logsv2.0.0_rc3
ref #398
-rw-r--r-- | main/dovecot/2281223b9cb9.patch | 21 | ||||
-rw-r--r-- | main/dovecot/APKBUILD | 11 |
2 files changed, 30 insertions, 2 deletions
diff --git a/main/dovecot/2281223b9cb9.patch b/main/dovecot/2281223b9cb9.patch new file mode 100644 index 0000000000..4eb9c01f85 --- /dev/null +++ b/main/dovecot/2281223b9cb9.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | |||
2 | # HG changeset patch | ||
3 | # User Timo Sirainen <tss@iki.fi> | ||
4 | # Date 1281449944 -3600 | ||
5 | # Node ID 2281223b9cb99357a89971b64680530813d22a81 | ||
6 | # Parent 367ce71922bfc95ec1faad91cd47f1c758cd2d50 | ||
7 | master: Don't crash on config reload when using dict processes. | ||
8 | |||
9 | --- a/src/master/dict-process.c Wed Aug 04 16:54:17 2010 +0100 | ||
10 | +++ b/src/master/dict-process.c Tue Aug 10 15:19:04 2010 +0100 | ||
11 | @@ -214,7 +214,8 @@ | ||
12 | struct dict_listener *listener = process->listener; | ||
13 | |||
14 | dict_process_deinit(process); | ||
15 | - if (listener->processes == NULL && listener->fd != -1) { | ||
16 | + if (listener->processes == NULL && listener->fd != -1 && | ||
17 | + listener->io == NULL) { | ||
18 | /* last listener died, create new ones */ | ||
19 | listener->io = io_add(listener->fd, IO_READ, | ||
20 | dict_listener_input, listener); | ||
21 | |||
diff --git a/main/dovecot/APKBUILD b/main/dovecot/APKBUILD index c6774c14cf..40aae396a4 100644 --- a/main/dovecot/APKBUILD +++ b/main/dovecot/APKBUILD | |||
@@ -2,7 +2,7 @@ | |||
2 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 2 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
3 | pkgname=dovecot | 3 | pkgname=dovecot |
4 | pkgver=1.2.13 | 4 | pkgver=1.2.13 |
5 | pkgrel=0 | 5 | pkgrel=1 |
6 | pkgdesc="IMAP and POP3 server" | 6 | pkgdesc="IMAP and POP3 server" |
7 | url="http://www.dovecot.org/" | 7 | url="http://www.dovecot.org/" |
8 | license="LGPL-2.1" | 8 | license="LGPL-2.1" |
@@ -18,8 +18,14 @@ subpackages="$pkgname-doc $pkgname-dev $pkgname-pgsql $pkgname-mysql | |||
18 | source="http://www.dovecot.org/releases/1.2/$pkgname-$pkgver.tar.gz | 18 | source="http://www.dovecot.org/releases/1.2/$pkgname-$pkgver.tar.gz |
19 | dovecot.logrotate | 19 | dovecot.logrotate |
20 | dovecot.initd | 20 | dovecot.initd |
21 | 2281223b9cb9.patch | ||
21 | " | 22 | " |
22 | 23 | ||
24 | prepare() { | ||
25 | cd "$srcdir"/$pkgname-$pkgver | ||
26 | patch -p1 -i "$srcdir"/2281223b9cb9.patch || return 1 | ||
27 | } | ||
28 | |||
23 | build() { | 29 | build() { |
24 | cd "$srcdir/$pkgname-$pkgver" | 30 | cd "$srcdir/$pkgname-$pkgver" |
25 | 31 | ||
@@ -92,4 +98,5 @@ sqlite() { | |||
92 | 98 | ||
93 | md5sums="aaee3b5fd59e01780305553248f686bc dovecot-1.2.13.tar.gz | 99 | md5sums="aaee3b5fd59e01780305553248f686bc dovecot-1.2.13.tar.gz |
94 | aec5cc797ab2acf72ce3b6bb1030345f dovecot.logrotate | 100 | aec5cc797ab2acf72ce3b6bb1030345f dovecot.logrotate |
95 | c58b474dca20e6e60fa4f1f5b9c726e1 dovecot.initd" | 101 | c58b474dca20e6e60fa4f1f5b9c726e1 dovecot.initd |
102 | c8581417ce7946668839a9d0fcd93ee8 2281223b9cb9.patch" | ||