rpms/logrotate/devel logrotate-3.7.6-selinux.patch, 1.1, 1.2 logrotate.spec, 1.68, 1.69

Tomas Smetana (tsmetana) fedora-extras-commits at redhat.com
Wed Jan 9 09:41:55 UTC 2008


Author: tsmetana

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

Modified Files:
	logrotate-3.7.6-selinux.patch logrotate.spec 
Log Message:
* Wed Jan 09 2008 Tomas Smetana <tsmetana at redhat.com> 3.7.6-2.1
- fix the selinux patch


logrotate-3.7.6-selinux.patch:

Index: logrotate-3.7.6-selinux.patch
===================================================================
RCS file: /cvs/pkgs/rpms/logrotate/devel/logrotate-3.7.6-selinux.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- logrotate-3.7.6-selinux.patch	9 Jan 2008 09:00:21 -0000	1.1
+++ logrotate-3.7.6-selinux.patch	9 Jan 2008 09:41:16 -0000	1.2
@@ -73,9 +73,9 @@
 +#ifdef WITH_SELINUX
 +	if (selinux_enabled) {
 +	    setfscreatecon_raw(savedContext);
-+	    if (prev_context != NULL) {
-+			freecon(prev_context);
-+			prev_context = NULL;
++	    if (savedContext != NULL) {
++			freecon(savedContext);
++			savedContext = NULL;
 +	    }
 +	}
 +#endif


Index: logrotate.spec
===================================================================
RCS file: /cvs/pkgs/rpms/logrotate/devel/logrotate.spec,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- logrotate.spec	9 Jan 2008 09:00:21 -0000	1.68
+++ logrotate.spec	9 Jan 2008 09:41:16 -0000	1.69
@@ -1,7 +1,7 @@
 Summary: Rotates, compresses, removes and mails system log files
 Name: logrotate
 Version: 3.7.6
-Release: 2%{?dist}
+Release: 2.1%{?dist}
 License: GPL+
 Group: System Environment/Base
 # The source for this package was pulled from cvs.
@@ -60,6 +60,9 @@
 %attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate.status
 
 %changelog
+* Wed Jan 09 2008 Tomas Smetana <tsmetana at redhat.com> 3.7.6-2.1
+- fix the selinux patch
+
 * Wed Jan 09 2008 Tomas Smetana <tsmetana at redhat.com> 3.7.6-2
 - fix #427274 - logrotate fails to preserve SELinux file contexts
 - fix #427661 - SELinux stops vsftpd from working correctly




More information about the fedora-extras-commits mailing list