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:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to