[Logcheck-commits] CVS logcheck/src

CVS User maks-guest logcheck-devel@lists.alioth.debian.org
Sat, 05 Jun 2004 10:54:10 -0600


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

Modified Files:
	logcheck 
Log Message:

greplogoutput() has many funny duplicate calls of our ignore files,
don't want to change that behaviour in middle of a freeze,
quick and dirty fix for using our logcheck-foo files,
when no logcheck entry is raised, 
this bug bites me regular on my workstation when issuing "sudo" commands.


--- /cvsroot/logcheck/logcheck/src/logcheck	2004/06/04 16:02:18	1.51
+++ /cvsroot/logcheck/logcheck/src/logcheck	2004/06/05 16:54:09	1.52
@@ -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.51 2004/06/04 16:02:18 maks-guest Exp $
+# $Id: logcheck,v 1.52 2004/06/05 16:54:09 maks-guest Exp $
 
 
 # Set the umask
@@ -279,6 +279,12 @@
 	    if [ -n "$ignore" -a -f "$ignore/$(basename $grepfile)" ]; then
 		cleanchecked "$ignore/$(basename $grepfile)"
 	    fi
+
+	    # quick and dirty fix for ignoring logcheck-foo files 
+	    # in the case logcheck itself has no raised entry
+	    if [ -n "$ignore" -a -f "$ignore/logcheck-$(basename $grepfile)" ]; then
+		cleanchecked "$ignore/logcheck-$(basename $grepfile)"
+	    fi
 	    
 	    # If it's the logcheck file, we do something special
 	    if [ "$(basename $grepfile)" = "logcheck" ]; then