Package: logcheck
Version: 1.2.43a
Severity: normal
Tags: patch

This is actually a problem on Ubuntu, where the lock directory is now
getting purged at startup, but I think the script should ensure the
directory exists anyway (as bastille does, for instance):

diff -u /usr/sbin/logcheck\~ /usr/sbin/logcheck
--- /usr/sbin/logcheck~	2006-02-19 13:54:53.000000000 +0000
+++ /usr/sbin/logcheck	2006-03-15 12:51:02.000000000 +0000
@@ -619,8 +619,9 @@
 fi
 
 trap 'cleanup' 0
-                                                                                
+
 debug "Trying to get lockfile: $LOCKFILE.lock"
+[ -d `dirname $LOCKFILE` ] || mkdir -m 0755 `dirname $LOCKFILE`
 lockfile-create --retry 1 $LOCKFILE > /dev/null 2>&1
 
 

-- System Information:
Debian Release: testing/unstable
  APT prefers dapper
  APT policy: (800, 'dapper')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-18-686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages logcheck depends on:
ii  adduser                 3.80ubuntu1      Add and remove users and groups
ii  cron                    3.0pl1-92ubuntu1 management of regular background p
ii  debconf [debconf-2.0]   1.4.70ubuntu2    Debian configuration management sy
ii  debianutils             2.15.2           Miscellaneous utilities specific t
ii  exim4-daemon-light [mai 4.60-3ubuntu1    lightweight exim MTA (v4) daemon
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-database       1.2.43a          database of system log rules for t
ii  logtail                 1.2.43a          Print log file lines that have not
ii  mailutils [mailx]       1:0.6.90-3       GNU mailutils utilities for handli
ii  sysklogd [system-log-da 1.4.1-17ubuntu4  System Logging Daemon

logcheck recommends no packages.

-- debconf information:
  logcheck/changes:
* logcheck/install-note:

Reply via email to