Related: #241766
This commit is contained in:
parent
c06a6ee6c9
commit
fb9fe1eb21
11
logrotate-3.7.5-logfn.patch
Normal file
11
logrotate-3.7.5-logfn.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- logrotate-3.7.5/logrotate.c.logfn 2007-05-30 14:52:21.000000000 +0200
|
||||
+++ logrotate-3.7.5/logrotate.c 2007-05-30 14:53:08.000000000 +0200
|
||||
@@ -151,7 +151,7 @@
|
||||
}
|
||||
|
||||
if (!fork()) {
|
||||
- execl("/bin/sh", "sh", "-c", script, NULL);
|
||||
+ execl("/bin/sh", "sh", "-c", script, script, logfn, NULL);
|
||||
exit(1);
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
Summary: Rotates, compresses, removes and mails system log files
|
||||
Name: logrotate
|
||||
Version: 3.7.5
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
License: GPL
|
||||
Group: System Environment/Base
|
||||
# The source for this package was pulled from cvs.
|
||||
@ -16,6 +16,7 @@ Patch1: logrotate-3.7.5-errorHandling.patch
|
||||
Patch2: logrotate-3.7.5-shred.patch
|
||||
Patch3: logrotate-3.7.5-cfengine.patch
|
||||
Patch4: logrotate-3.7.5-date.patch
|
||||
Patch5: logrotate-3.7.5-logfn.patch
|
||||
Requires: coreutils >= 5.92
|
||||
BuildRequires: libselinux-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
@ -37,6 +38,7 @@ log files on your system.
|
||||
%patch2 -p1 -b .shred
|
||||
%patch3 -p1 -b .cfengine
|
||||
%patch4 -p1 -b .dateext
|
||||
%patch5 -p1 -b .logfn
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" WITH_SELINUX=yes
|
||||
@ -66,6 +68,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate.status
|
||||
|
||||
%changelog
|
||||
* Thu May 31 2007 Tomas Smetana <tsmetana@redhat.com> 3.7.5-5
|
||||
- fix ignoring pre/postrotate arguments (related #241766)
|
||||
|
||||
* Wed May 23 2007 Tomas Smetana <tsmetana@redhat.com> 3.7.5-4
|
||||
- use dateext in the default config file (#240292)
|
||||
- add options to use shred for deleting files -- adapt patch sent by
|
||||
|
Loading…
Reference in New Issue
Block a user