rpms/logrotate/devel logrotate-3.7.7-curdir2.patch, NONE, 1.1 logrotate.spec, 1.75, 1.76

Daniel Novotny dnovotny at fedoraproject.org
Thu Nov 20 14:39:37 UTC 2008


Author: dnovotny

Update of /cvs/extras/rpms/logrotate/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3966

Modified Files:
	logrotate.spec 
Added Files:
	logrotate-3.7.7-curdir2.patch 
Log Message:

.


logrotate-3.7.7-curdir2.patch:

--- NEW FILE logrotate-3.7.7-curdir2.patch ---
diff -up logrotate-3.7.7/config.c.curdir logrotate-3.7.7/config.c
--- logrotate-3.7.7/config.c.curdir	2008-05-09 09:28:59.000000000 +0200
+++ logrotate-3.7.7/config.c	2008-11-20 15:35:05.000000000 +0100
@@ -316,11 +316,6 @@ static int readConfigPath(const char *pa
 	DIR *dirp;
 
 	here = open(".", O_RDONLY);
-	if (here < 0) {
-	    message(MESS_ERROR, "cannot open current directory: %s\n",
-		    strerror(errno));
-	    return 1;
-	}
 
 	if ((dirp = opendir(path)) == NULL) {
 	    message(MESS_ERROR, "cannot open directory %s: %s\n", path,


Index: logrotate.spec
===================================================================
RCS file: /cvs/extras/rpms/logrotate/devel/logrotate.spec,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- logrotate.spec	20 Nov 2008 13:55:53 -0000	1.75
+++ logrotate.spec	20 Nov 2008 14:39:06 -0000	1.76
@@ -1,11 +1,11 @@
 Summary: Rotates, compresses, removes and mails system log files
 Name: logrotate
 Version: 3.7.7
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPL+
 Group: System Environment/Base
 Source: https://fedorahosted.org/releases/l/o/logrotate/logrotate-%{version}.tar.gz
-Patch1: logrotate-3.7.7-curdir.patch
+Patch1: logrotate-3.7.7-curdir2.patch
 
 Requires: coreutils >= 5.92 libsepol libselinux popt
 BuildRequires: libselinux-devel popt-devel
@@ -54,6 +54,9 @@
 %attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate.status
 
 %changelog
+* Thu Nov 20 2008 Daniel Novotny <dnovotny at redhat.com> 3.7.7-3
+- less aggressive approach to the fix
+
 * Thu Nov 20 2008 Daniel Novotny <dnovotny at redhat.com> 3.7.7-2
 - fix #471463 (selinux problems with logrotate)
 




More information about the fedora-extras-commits mailing list