Package: dovecot-common
Version: 1:1.0.15-2.3+lenny1
Severity: minor
Tags: patch
Dovecot's initscript assumes that inetd is installed in system (sed-ding the
/etc/inetd.conf).
I've patched it, now it checks whether /etc/inetd.conf exists or not.
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (800, 'stable'), (700, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-openvz-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages dovecot-common depends on:
ii adduser 3.110 add and remove users and groups
ii libc6 2.10.1-3 GNU C Library: Shared libraries
ii libcomerr2 1.41.3-1 common error description library
ii libkrb53 1.6.dfsg.4~beta1-5lenny1 MIT Kerberos runtime libraries
ii libldap-2.4-2 2.4.11-1 OpenLDAP libraries
ii libmysqlclient1 5.0.51a-24+lenny2 MySQL database client library
ii libpam-runtime 1.0.1-5+lenny1 Runtime support for the PAM librar
ii libpam0g 1.0.1-5+lenny1 Pluggable Authentication Modules l
ii libpq5 8.4.1-1 PostgreSQL C client library
ii libsqlite3-0 3.6.19-3 SQLite 3 shared library
ii libssl0.9.8 0.9.8g-15+lenny5 SSL shared libraries
ii openssl 0.9.8g-15+lenny5 Secure Socket Layer (SSL) binary a
ii ucf 3.0016 Update Configuration File: preserv
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
dovecot-common recommends no packages.
dovecot-common suggests no packages.
-- no debconf information
--- /etc/init.d/dovecot.dist 2009-12-06 20:03:41.000000000 +0600
+++ /etc/init.d/dovecot 2009-12-06 20:17:17.000000000 +0600
@@ -53,17 +53,22 @@
# The init script should do nothing if dovecot or another imap/pop3 server
# is being run from inetd, and dovecot is configured to run as an imap or
# pop3 service
-for p in `sed -r "s/^ *(([^:]+|\[[^]]+]|\*):)?(pop3s?|imaps?)[ \t].*/\3/;t;d" \
- /etc/inetd.conf`
-do
- for q in `sed -r "s/^[ \t]*protocols[ \t]*=[
\t]*(([^\"]*)|\"(.*)\")/\2\3/;t;d" \
- ${CONF}`
+
+# It's only sense when inetd is installed
+
+if [ -e /etc/inetd.conf ]; then
+ for p in `sed -r "s/^ *(([^:]+|\[[^]]+]|\*):)?(pop3s?|imaps?)[
\t].*/\3/;t;d" \
+ /etc/inetd.conf`
do
- if [ $p = $q ]; then
- exit 0
- fi
+ for q in `sed -r "s/^[ \t]*protocols[ \t]*=[
\t]*(([^\"]*)|\"(.*)\")/\2\3/;t;d" \
+ ${CONF}`
+ do
+ if [ $p = $q ]; then
+ exit 0
+ fi
+ done
done
-done
+fi
# determine the location of the PID file
# overide by setting base_dir in conf file or PIDBASE in /etc/defaults/$NAME