Package: logwatch
Version: 5.2.2-4
Severity: normal
Tags: patch

Logwatch is reporting unmatched cron entries for users with a '-' in the
username. e.g.

Unmatched Entries:
    root : TTY=pts/0 ; PWD=/tmp ; USER=Debian-exim ; COMMAND=/usr/bin/test -w 
/var/spool/exim4
    root : TTY=pts/0 ; PWD=/tmp ; USER=www-data ; COMMAND=/usr/bin/test -w 
/var/www

The following patch fixes the problem.

Best regards

Richard


--- /usr/share/logwatch/scripts/services/sudo.050330    2005-03-30 
09:17:08.000000000 +0100
+++ /usr/share/logwatch/scripts/services/sudo   2005-03-30 09:18:54.000000000 
+0100
@@ -32,7 +32,7 @@
 while (defined(my $line=<STDIN>)){
    chomp $line;
    if ( my($user, $tty, $dir, $euser, $cmd)
-       = ( $line =~ /^\s*(\w+) : TTY=(\S+) ; PWD=(.*?) ; USER=(\w+) ; 
COMMAND=(.*)/)) {
+       = ( $line =~ /^\s*(\w+) : TTY=(\S+) ; PWD=(.*?) ; USER=([-\w]+) ; 
COMMAND=(.*)/)) {
       push @{$byUser{$user}{$euser}}, [$cmd, $dir, $tty];
     }
     else 


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-386
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages logwatch depends on:
ii  mailx            1:8.1.2-0.20040524cvs-4 A simple mail user agent
ii  perl             5.8.4-6                 Larry Wall's Practical Extraction 

-- no debconf information


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

Reply via email to