Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4:Update
logwatch
logwatch-make_save_work.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File logwatch-make_save_work.patch of Package logwatch
Index: scripts/logwatch.pl =================================================================== --- scripts/logwatch.pl.orig 2007-05-20 02:24:20.000000000 +0200 +++ scripts/logwatch.pl 2009-12-01 16:12:38.368978630 +0100 @@ -1005,10 +1005,10 @@ sub initprint { $OStitle = $OSname; $OStitle = "Solaris" if ($OSname eq "SunOS" && $release >= 2); - if ($Config{'print'} eq 1) { - *OUTFILE = *STDOUT; - } elsif ($Config{'save'} ne "") { + if ($Config{'save'} ne "") { open(OUTFILE,">>" . $Config{'save'}) or die "Can't open output file: $Config{'save'} $!\n"; + } elsif ($Config{'print'} eq 1) { + *OUTFILE = *STDOUT; } else { if (($Config{'multiemail'} eq 1) || ($emailopen eq "")) { #Use mailer = in logwatch.conf to set options. Default should be "sendmail -t"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor