From b2335c0b21d064f660e593112f8c349e48414c9f Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Mon, 19 Oct 2009 11:47:43 +0000 Subject: Correct exiwhat mishandling log_selector = +pid. Fixes: #688 --- src/src/exiwhat.src | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/src/exiwhat.src b/src/src/exiwhat.src index c5bb312bb..3af128cf4 100644 --- a/src/src/exiwhat.src +++ b/src/src/exiwhat.src @@ -1,5 +1,5 @@ #! /bin/sh -# $Cambridge: exim/src/src/exiwhat.src,v 1.3 2009/01/02 16:58:05 nm4 Exp $ +# $Cambridge: exim/src/src/exiwhat.src,v 1.4 2009/10/19 11:47:44 nm4 Exp $ # Copyright (c) 2003 University of Cambridge. # See the file NOTICE for conditions of use and distribution. @@ -130,7 +130,7 @@ fi sleep 1 if [ ! -s ${log} ] ; then echo "No exim process data" ; - else sed 's/^[0-9-]* [0-9:]* \([+-][0-9]* \)*//' ${log} | sort -n | uniq ; fi + else sed 's/^[0-9-]* [0-9:]* \([+-][0-9]* \)*\(\[[0-9]\+\] \)\?//' ${log} | sort -n | uniq ; fi # End of exiwhat -- cgit v1.2.3