Fix bad backport

This commit is contained in:
Jan Synacek 2014-07-04 10:24:19 +02:00
parent 9eba0c43fa
commit adbadf2ebe
2 changed files with 5 additions and 2 deletions

View File

@ -49,7 +49,7 @@ Backported-By: Jan Synacek <jsynacek@redhat.com>
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";

View File

@ -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 <jsynacek@redhat.com> - 7.4.0-33.20140704svn198
- Fix bad backport
* Fri Jul 4 2014 Jan Synáček <jsynacek@redhat.com> - 7.4.0-32.20140704svn198
- Update to revision 198