[Logcheck-commits] CVS logcheck/src

CVS User jlps-guest logcheck-devel at lists.alioth.debian.org
Sun Feb 12 04:48:20 UTC 2006


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

Modified Files:
	logcheck 
Log Message:
Use 'find' instead of 'run-parts --list' to list the contents of directories since 'run-parts' cannot handle filenames with periods.


--- /cvsroot/logcheck/logcheck/src/logcheck	2006/01/02 08:51:01	1.131
+++ /cvsroot/logcheck/logcheck/src/logcheck	2006/02/12 04:48:19	1.132
@@ -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.131 2006/01/02 08:51:01 ttroxell Exp $
+# $Id: logcheck,v 1.132 2006/02/12 04:48:19 jlps-guest Exp $
 
 if [ $UID == 0 ]; then
     echo "logcheck should not be run as root. Use su to invoke logcheck:"
@@ -207,7 +207,7 @@
 	    mkdir $cleaned \
 	        || error "Could not make dir $cleaned for cleaned rulefiles."
 	fi
-	for rulefile in $(run-parts --list $dir); do
+	for rulefile in $(find $dir); do
 	    rulefile=$(basename $rulefile)
 	    if [ -f ${dir}/${rulefile} ]; then
 		debug "cleanrules: ${dir}/${rulefile}"



More information about the Logcheck-commits mailing list