Package: dovecot
Version: 1.0.rc1-1
Severity: minor
Tags: patch

Hi!

It becomes increasingly popular to store /tmp, /var/run, and /var/lock
on a tmpfs. Unfortunately this breaks packages which expect a
persistent subdirectory there (this is a bit unclear in the LSB
specification).

Would you consider applying the attached patch, so that the directory
is guaranteed to be present? Thank you!

Martin
-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

In a world without walls and fences, who needs Windows and Gates?
--- dovecot-1.0.rc1/debian/dovecot-common.init
+++ dovecot-1.0.rc1/debian/dovecot-common.init
@@ -15,6 +15,12 @@
 
 set -e
 
+if [ ! -d /var/run/dovecot/login ]; then
+       mkdir -p /var/run/dovecot/login
+       chmod 0750 /var/run/dovecot/login
+       chmod 0700 /var/run/dovecot
+fi
+
 # The init script should do nothing if dovecot is being run from inetd
 for p in `sed -r "s/^ *(([^:]+|\[[^]]+]|\*):)?(pop3s?|imaps?)[ \t].*/\3/;t;d" \
   /etc/inetd.conf`

Attachment: signature.asc
Description: Digital signature

Reply via email to