Cristian Ionescu-Idbohrn
2006-Feb-20 23:25 UTC
[Logcheck-devel] Bug#353793: /usr/sbin/logcheck does no longer skip '<rule file>~' files?
Package: logcheck Version: 1.2.43a Severity: important Tags: patch This patch seems to work around the problem: ---8<--- --- /usr/sbin/logcheck.orig 2006-02-19 14:54:53.000000000 +0100 +++ /usr/sbin/logcheck 2006-02-20 23:43:57.000000000 +0100 @@ -207,7 +207,7 @@ cleanrules() { mkdir $cleaned \ || error "Could not make dir $cleaned for cleaned rulefiles." fi - for rulefile in $(find $dir); do + for rulefile in $(find $dir -type f | egrep -v '~$'); do rulefile=$(basename $rulefile) if [ -f ${dir}/${rulefile} ]; then debug "cleanrules: ${dir}/${rulefile}" ---8<--- but I may be wrong. Thing is that statement: for rulefile in $(run-parts --list $dir); do changed (1.2.42 -> 1.2.43a) to: for rulefile in $(find $dir); do and things broke :( Cheers, Cristian -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15-1-k7 Locale: LANG=C, LC_CTYPE= (charmap=ANSI_X3.4-1968) Versions of packages logcheck depends on: ii adduser 3.84 Add and remove users and groups ii cron 3.0pl1-92 management of regular background p ii debconf [debconf 1.4.70 Debian configuration management sy ii debianutils 2.15.2 Miscellaneous utilities specific t ii grep 2.5.1.ds2-4 GNU grep, egrep and fgrep ii lockfile-progs 0.1.10 Programs for locking and unlocking ii logcheck-databas 1.2.43a database of system log rules for t ii logtail 1.2.43a Print log file lines that have not ii mailx 1:8.1.2-0.20050715cvs-1 A simple mail user agent ii sendmail-bin [ma 8.13.5-3 powerful, efficient, and scalable ii sysklogd [system 1.4.1-17.1 System Logging Daemon logcheck recommends no packages. -- debconf information: * logcheck/noroot: logcheck/changes: * logcheck/install-note:
Jamie L. Penman-Smithson
2006-Apr-25 22:59 UTC
Bug#353793: [Logcheck-devel] Bug#353793: /usr/sbin/logcheck does no longer skip '<rule file>~' files?
package logcheck severity 355949 important merge 353793 355949 tags 353793 pending thanks On 20 Feb 2006, at 23:25, Cristian Ionescu-Idbohrn wrote:> > This patch seems to work around the problem:<snip>> but I may be wrong. > > Thing is that statement: > > for rulefile in $(run-parts --list $dir); do > > changed (1.2.42 -> 1.2.43a) to: > > for rulefile in $(find $dir); do > > and things broke :(This will be fixed in the next release. -j -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20060425/39208451/attachment.pgp