.
This commit is contained in:
parent
3e3b27eb33
commit
d7ad98efc1
15
logrotate-3.7.7-curdir2.patch
Normal file
15
logrotate-3.7.7-curdir2.patch
Normal file
@ -0,0 +1,15 @@
|
||||
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,
|
@ -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 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate.status
|
||||
|
||||
%changelog
|
||||
* Thu Nov 20 2008 Daniel Novotny <dnovotny@redhat.com> 3.7.7-3
|
||||
- less aggressive approach to the fix
|
||||
|
||||
* Thu Nov 20 2008 Daniel Novotny <dnovotny@redhat.com> 3.7.7-2
|
||||
- fix #471463 (selinux problems with logrotate)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user