Bug#332230: wrong distro update for /etc/init.d/exim4 (= substitute ==)

Emiliano 'AlberT' Gabrielli AlberT at SuperAlberT.it
Wed Oct 5 08:30:47 UTC 2005


Package: exim4
Version: 4.54-1
Severity: normal

last distro update (for SID) replaces a comparison operator with an
assignment one in /etc/init.d/exim4 ..

Even if the results seems to be the same this is a logical error, and so
the change should be reverted to 

  if [ "$(readlink /proc/$pid/root)" == "/" ]; then


Moreover I suggest to background the start_exim invocation .. this way
avoiding hanging on network problems

  start_exim &


-- Package-specific info:
Exim version 4.54 #1 built 04-Oct-2005 10:01:38
Copyright (c) University of Cambridge 2005
Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Support for: crypteq iconv() IPv6 GnuTLS
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
Configuration file is /var/lib/exim4/config.autogenerated
# /etc/exim4/update-exim4.conf.conf
#
# Edit this file and /etc/mailname by hand and execute update-exim4.conf
# yourself or use 'dpkg-reconfigure exim4-config'

dc_eximconfig_configtype='satellite'
dc_other_hostnames='XXXX.roma2.infn.it'
dc_local_interfaces='127.0.0.1'
dc_readhost='XXXX.roma2.infn.it'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='XXXX.roma2.infn.it'
CFILEMODE='644'
dc_use_split_config='true'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
mailname:XXXX.roma2.infn.it

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (1100, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-albert
Locale: LANG=it_IT at euro, LC_CTYPE=it_IT at euro (charmap=ISO-8859-15)

Versions of packages exim4 depends on:
ii  exim4-base                    4.54-1     support files for all exim MTA (v4
ii  exim4-daemon-light            4.54-1     lightweight exim MTA (v4) daemon

exim4 recommends no packages.

-- no debconf information
-------------- next part --------------
--- /etc/init.d/exim4.dpkg-dist	2005-10-04 11:41:03.000000000 +0200
+++ /etc/init.d/exim4	2005-09-12 09:14:46.000000000 +0200
@@ -111,7 +111,7 @@
 {
   SIG="${1:-TERM}"
   for pid in $(pidof $NAME); do
-    if [ "$(readlink /proc/$pid/root)" = "/" ]; then
+    if [ "$(readlink /proc/$pid/root)" == "/" ]; then
       kill -$SIG $pid
     fi
   done
@@ -133,7 +133,7 @@
     # regenerate exim4.conf
     upex4conf
     isconfigvalid
-    start_exim
+    start_exim &
     echo "$NAME."
     ;;
   stop)


More information about the Pkg-exim4-maintainers mailing list