Package: milter-greylist / 4.5.11-1.1

tempfs.508122 Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Description: All running with /var/run on a tempfs
Forwarded: no
Origin: vendor
Author: Paul Martin <pm@debian.org>
Bug-Debian: http://bugs.debian.org/508122
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/milter-greylist/+bug/226267

Although it's not default in Debian, it's perfectly reasonable to run
/var/run on a tempfs (as Ubuntu does) so the init should check and see
if the run dir exists and create it if it doesn't.

--

Ubuntu bug: #226267

I just upgraded from Gutsy to Hardy via the alternate CD. In the 
process, a previously running sendmail installation broke. The problem 
is the perissions on /var/run/milter-greylist.

(Ubuntu had applied the patch from Debian bug #508122, which doesn't get 
the permissions such that sendmail is happy with the socket.)


Index: milter-greylist-4.1.12/rc-debian.sh.in
===================================================================
--- milter-greylist-4.1.12.orig/rc-debian.sh.in	2009-02-16 17:44:28.778437211 +0000
+++ milter-greylist-4.1.12/rc-debian.sh.in	2009-02-16 17:45:58.378438860 +0000
@@ -60,6 +60,12 @@
   exit 1
 fi
 
+if [ ! -d /var/run/$PNAME ]; then
+  mkdir /var/run/$PNAME
+  chown greylist:greylist /var/run/$PNAME
+  chmod 755 /var/run/$PNAME
+fi
+
 set -e
 
 case "$1" in