[logrotate] Index: /trunk/examples/logrotate.cron ==============================================================

Jan Kaluža jkaluza at fedoraproject.org
Wed Jul 20 11:04:59 UTC 2011


commit 5d6d8a191b13fde4f97094400ab825dd2016726d
Author: Jan Kaluza <hanzz.k at gmail.com>
Date:   Wed Jul 20 13:03:56 2011 +0200

    Index: /trunk/examples/logrotate.cron
    ===================================================================
    --- a/examples/logrotate.cron (revision 268)
    +++ b/examples/logrotate.cron (revision 334)
    @@ -1,5 +1,5 @@
     #!/bin/sh
    
    -/usr/sbin/logrotate /etc/logrotate.conf >/dev/null 2>&1
    +/usr/sbin/logrotate /etc/logrotate.conf
     EXITVALUE=$?
     if [ $EXITVALUE != 0 ]; then

 logrotate-3.8.0-no-cron-redirection.patch |   11 +++++++++++
 logrotate.spec                            |    8 +++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/logrotate-3.8.0-no-cron-redirection.patch b/logrotate-3.8.0-no-cron-redirection.patch
new file mode 100644
index 0000000..eae80a6
--- /dev/null
+++ b/logrotate-3.8.0-no-cron-redirection.patch
@@ -0,0 +1,11 @@
+Index: /trunk/examples/logrotate.cron
+===================================================================
+--- a/examples/logrotate.cron (revision 268)
++++ b/examples/logrotate.cron (revision 334)
+@@ -1,5 +1,5 @@
+ #!/bin/sh
+ 
+-/usr/sbin/logrotate /etc/logrotate.conf >/dev/null 2>&1
++/usr/sbin/logrotate /etc/logrotate.conf
+ EXITVALUE=$?
+ if [ $EXITVALUE != 0 ]; then
diff --git a/logrotate.spec b/logrotate.spec
index 408153a..0718467 100644
--- a/logrotate.spec
+++ b/logrotate.spec
@@ -1,11 +1,12 @@
 Summary: Rotates, compresses, removes and mails system log files
 Name: logrotate
 Version: 3.8.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPL+
 Group: System Environment/Base
 Url: https://fedorahosted.org/logrotate/
 Source: https://fedorahosted.org/releases/l/o/logrotate/logrotate-%{version}.tar.gz
+Patch0: logrotate-3.8.0-no-cron-redirection.patch
 
 Requires: coreutils >= 5.92 libsepol libselinux popt libacl
 BuildRequires: libselinux-devel popt-devel libacl-devel
@@ -25,6 +26,8 @@ log files on your system.
 %prep
 %setup -q
 
+%patch0 -p1
+
 %build
 make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" WITH_SELINUX=yes WITH_ACL=yes
 
@@ -54,6 +57,9 @@ rm -rf $RPM_BUILD_ROOT
 %attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate.status
 
 %changelog
+* Wed Jul 20 2011 Jan Kaluza <jkaluza at redhat.com> 3.8.0-2
+- fix #722825 - do not redirect logrotate output in cron script
+
 * Tue Jun 21 2011 Jan Kaluza <jkaluza at redhat.com> 3.8.0-1
 - new upstream version 3.8.0
 - removed unused patches


More information about the scm-commits mailing list