diff --git a/logwatch-oldfiles.patch b/logwatch-oldfiles.patch index 847e63c..eedb730 100644 --- a/logwatch-oldfiles.patch +++ b/logwatch-oldfiles.patch @@ -49,7 +49,7 @@ Backported-By: Jan Synacek my @old_dirs = grep { /^logwatch\.\w{8}$/ && -d "$Config{'tmpdir'}/$_" } readdir(TMPDIR); -if (@old_dirs) { -+if (@old_dirs && ($NoOldfilesLog==0)) { ++if ((@old_dirs) && ($NoOldfilesLog==0)) { print "You have old files in your logwatch tmpdir ($Config{'tmpdir'}):\n\t"; print join("\n\t", @old_dirs); print "\nThe directories listed above were most likely created by a\n"; diff --git a/logwatch.spec b/logwatch.spec index 1b91843..3f7bf39 100644 --- a/logwatch.spec +++ b/logwatch.spec @@ -2,7 +2,7 @@ Summary: A log file analysis program Name: logwatch Version: 7.4.0 -Release: 32.20140704svn%{revision}%{?dist} +Release: 33.20140704svn%{revision}%{?dist} License: MIT Group: Applications/System URL: http://www.logwatch.org/ @@ -147,6 +147,9 @@ echo "# Configuration overrides for specific logfiles/services may be placed her %{_mandir}/man*/* %changelog +* Fri Jul 4 2014 Jan Synáček - 7.4.0-33.20140704svn198 +- Fix bad backport + * Fri Jul 4 2014 Jan Synáček - 7.4.0-32.20140704svn198 - Update to revision 198