• Bug#265863: setmailrelay qmail bug

    From Patrice Neff@1:229/2 to All on Sun Aug 15 14:40:07 2004
    From: [email protected]

    This is a multi-part MIME message sent by reportbug.

    Package: whereami
    Version: 0.3.16
    Severity: minor
    Tags: patch

    Just found a bug in the setmailrelay script. Namely in the qmail part I contributed a while ago. There is one grep line to copy the lines from the smtproutes file which have to be kept. This is exactly the wrong way round at the moment. Attached you'll find the very small patch for this.

    Greetings,
    patrice

    -- System Information:
    Debian Release: 3.1
    APT prefers unstable
    APT policy: (500, 'unstable')
    Architecture: powerpc (ppc)
    Kernel: Linux 2.4.24-ben1
    Locale: LANG=en_US, LC_CTYPE=de_CH

    Versions of packages whereami depends on:
    ii debconf 1.4.30 Debian configuration management sy ii perl 5.8.4-2 Larry Wall's Practical Extraction

    -- debconf information:
    * whereami/use_old_whereami: false
    * whereami/how_to_configure:

    --- setmailrelay.bak 2004-08-15 10:21:09.000000000 +0200
    +++ setmailrelay 2004-08-15 10:19:43.000000000 +0200
    @@ -222,7 +222,7 @@
    fi

    if [ -e $QMAIL_CONFFILE ]; then
    - grep -v ':[^:]*' $QMAIL_CONFFILE >$QMAIL_CONFFILE_NEW
    + grep ':[^:]*' $QMAIL_CONFFILE >$QMAIL_CONFFILE_NEW
    else
    >$QMAIL_CONFFILE_NEW
    fi

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)