[Logcheck-commits] CVS logcheck/src

CVS User maks-guest logcheck-devel@lists.alioth.debian.org
Tue, 28 Sep 2004 10:41:28 -0600


Update of /cvsroot/logcheck/logcheck/src
In directory haydn:/tmp/cvs-serv13988/src

Modified Files:
	logcheck 
Log Message:

do not use '-m' switch for sorting, better _sort_ :)
removed gratious call of uniq.
rm another file when upgrading from sarge.  new file is name logcheck-su.


--- /cvsroot/logcheck/logcheck/src/logcheck	2004/09/23 01:18:02	1.88
+++ /cvsroot/logcheck/logcheck/src/logcheck	2004/09/28 16:41:28	1.89
@@ -22,7 +22,7 @@
 # along with Logcheck; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-# $Id: logcheck,v 1.88 2004/09/23 01:18:02 ttroxell Exp $
+# $Id: logcheck,v 1.89 2004/09/28 16:41:28 maks-guest Exp $
 
 if [ $UID == 0 ]; then
     echo "logcheck should not be run as root. Use su to invoke logcheck:"
@@ -629,7 +629,7 @@
 # First sort the logs to remove duplicate lines (from different logfiles with
 # the same lines) and reduce CPU and memory usage afterwards.
 debug "Sorting logs"
-$SORT -m $TMPDIR/logoutput/* | uniq | sed -e 's/ *$//' | cat  \
+$SORT $TMPDIR/logoutput/* | sed -e 's/ *$//' | cat  \
     > $TMPDIR/logoutput-sorted \
         || error "Could not output to $TMPDIR/logoutput-sorted Disk Full?"