rpms/logrotate/devel logrotate-3.7.5-logfn.patch, NONE, 1.1 logrotate.spec, 1.62, 1.63

Tomas Smetana (tsmetana) fedora-extras-commits at redhat.com
Thu May 31 10:21:08 UTC 2007


Author: tsmetana

Update of /cvs/pkgs/rpms/logrotate/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3583

Modified Files:
	logrotate.spec 
Added Files:
	logrotate-3.7.5-logfn.patch 
Log Message:
Related: #241766

logrotate-3.7.5-logfn.patch:

--- NEW FILE logrotate-3.7.5-logfn.patch ---
--- 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);
     }
 


Index: logrotate.spec
===================================================================
RCS file: /cvs/pkgs/rpms/logrotate/devel/logrotate.spec,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- logrotate.spec	23 May 2007 12:05:19 -0000	1.62
+++ logrotate.spec	31 May 2007 10:20:33 -0000	1.63
@@ -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 @@
 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 @@
 %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 @@
 %attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate.status
 
 %changelog
+* Thu May 31 2007 Tomas Smetana <tsmetana at redhat.com> 3.7.5-5
+- fix ignoring pre/postrotate arguments (related #241766)
+
 * Wed May 23 2007 Tomas Smetana <tsmetana at 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




More information about the fedora-extras-commits mailing list