Re: cron script patch

Mike Tremaine <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Ivana Varekova wrote:
> I'm going through fedora logwatch patches and this one is not in 
> upstream branch so I'm sending it here.
> 
> Ivana Varekova
> 
> 

Committed to CVS [ 1 ignore was already in there]

[mgt@dwarfstar services]$ cvs diff cron
Index: cron
===================================================================
RCS file: /var/cvs/logwatch/scripts/services/cron,v
retrieving revision 1.35
diff -r1.35 cron
124a125
 >       ($ThisLine =~ /INFO \(\@reboot jobs will be run at computer's 
startup.\)/) or
236a238,243
 >    } elsif ($ThisLine =~ /FAILED to authorize user with PAM \(User 
not known to the underlying authentication module\)/) {
 >       $PAMAUTHErr++;
 >    } elsif ( ($FileName,$Cause) = ($ThisLine =~ /ERROR chdir failed 
\((.*)\): (.*)/) ) {
 >       $CHDIRErr{"$FileName,$Cause"}++;
 >    } elsif ($ThisLine =~ /ERROR \(failed to change user\)/) {
 >       $CHUSERHErr++;
379c386
<     print "    " . $key . ": " . $SELCONTErr{$key} . "time(s)\n";
---
 >     print "    " . $key . ": " . $SELCONTErr{$key} . " time(s)\n";
382a390,404
 > if ($PAMAUTHErr) {
 >    printf "\nPAM autentification error: " . $PAMAUTHErr . " time(s)\n";
 > }
 >
 > if (%CHDIRErr) {
 >    printf "\nchdir command failed\n";
 >    foreach (keys %CHDIRErr) {
 >       my ($File,$Cause) = split ",";
 >       print "    for directory " . $File . " (" . $Cause . ")". ": " 
. $CHDIRErr{"$File,$Cause"} . " time(s)\n";
 >    }
 > }
 >
 > if ($CHUSERHErr) {
 >    printf "\nUser change error: " . $CHUSERHErr . " time(s)\n";
 > }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.