Package: postfix Version: 2.1.5-8 Severity: minor File: /etc/network/if-up.d/postfix Tags: patch
When master is not running but a staled pid file still exists, the script fail with: postfix[20]: [: /usr/lib/postfix/master: unexpected operator/operand The following patch fixes the problem: --- postfix.old 2005-02-27 06:13:02.000000000 +0100 +++ postfix 2005-03-01 09:12:55.249647200 +0100 @@ -14,7 +14,7 @@ if [ -f /var/spool/postfix/pid/master.pid ]; then pid=$(sed 's/ //g' /var/spool/postfix/pid/master.pid) exe=$(ls -l /proc/$pid/exe 2>/dev/null | sed 's/.* //') - if [ $exe = "/usr/lib/postfix/master" ]; then + if [ "$exe" = "/usr/lib/postfix/master" ]; then /usr/sbin/sendmail -q fi fi Best Regards, robert -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.10 Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2) Versions of packages postfix depends on: ii adduser 3.62 Add and remove users and groups ii debconf [debconf-2.0] 1.4.46 Debian configuration management sy ii dpkg 1.10.27 Package maintenance system for Deb ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libdb4.2 4.2.52-18 Berkeley v4.2 Database Libraries [ ii libgdbm3 1.8.3-2 GNU dbm database routines (runtime ii netbase 4.20 Basic TCP/IP networking system -- debconf information excluded -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]