rpms/logrotate/devel logrotate-3.7.8-readonly.patch, NONE, 1.1 logrotate.spec, 1.82, 1.83
Daniel Novotny
dnovotny at fedoraproject.org
Thu Dec 17 14:26:55 UTC 2009
- Previous message (by thread): rpms/eclipse-mylyn/devel fetch-mylyn.sh, 1.12, 1.13 eclipse-mylyn.spec, 1.45, 1.46 .cvsignore, 1.11, 1.12 eclipse-mylyn-addfedoracustomizations.patch, 1.10, 1.11 sources, 1.14, 1.15
- Next message (by thread): File Linux-PAM-1.1.1.tar.bz2 uploaded to lookaside cache by tmraz
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: dnovotny
Update of /cvs/extras/rpms/logrotate/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10324
Modified Files:
logrotate.spec
Added Files:
logrotate-3.7.8-readonly.patch
Log Message:
fix #545919
logrotate-3.7.8-readonly.patch:
logrotate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE logrotate-3.7.8-readonly.patch ---
--- logrotate-3.7.8/logrotate.c.readonly 2009-12-09 09:09:10.000000000 -0800
+++ logrotate-3.7.8/logrotate.c 2009-12-09 09:21:37.000000000 -0800
@@ -432,7 +432,7 @@ static int copyTruncate(char *currLog, c
message(MESS_DEBUG, "copying %s to %s\n", currLog, saveLog);
if (!debug) {
- if ((fdcurr = open(currLog, O_RDWR)) < 0) {
+ if ((fdcurr = open(currLog, (flags & LOG_FLAG_COPY) ? O_RDONLY : O_RDWR)) < 0) {
message(MESS_ERROR, "error opening %s: %s\n", currLog,
strerror(errno));
return 1;
Index: logrotate.spec
===================================================================
RCS file: /cvs/extras/rpms/logrotate/devel/logrotate.spec,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -p -r1.82 -r1.83
--- logrotate.spec 29 Sep 2009 13:34:11 -0000 1.82
+++ logrotate.spec 17 Dec 2009 14:26:55 -0000 1.83
@@ -1,7 +1,7 @@
Summary: Rotates, compresses, removes and mails system log files
Name: logrotate
Version: 3.7.8
-Release: 5%{?dist}
+Release: 6%{?dist}
License: GPL+
Group: System Environment/Base
Source: https://fedorahosted.org/releases/l/o/logrotate/logrotate-%{version}.tar.gz
@@ -9,6 +9,7 @@ Patch1: logrotate-3.7.7-curdir2.patch
Patch2: logrotate-3.7.7-toolarge.patch
Patch3: logrotate-3.7.8-devnull.patch
Patch4: logrotate-3.7.8-man5.patch
+Patch5: logrotate-3.7.8-readonly.patch
Requires: coreutils >= 5.92 libsepol libselinux popt
BuildRequires: libselinux-devel popt-devel
@@ -31,6 +32,7 @@ log files on your system.
%patch2 -p1 -b .toolarge
%patch3 -p1 -b .devnull
%patch4 -p1 -b .man5
+%patch5 -p1 -b .readonly
%build
make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" WITH_SELINUX=yes
@@ -61,6 +63,9 @@ rm -rf $RPM_BUILD_ROOT
%attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate.status
%changelog
+* Wed Dec 09 2009 Henrique Martins <bugzilla-redhat-2009 at martins.cc> 3.7.8-6
+- fix #545919 (rotate non-writable files when copy is set)
+
* Tue Sep 29 2009 Daniel Novotny <dnovotny at redhat.com> 3.7.8-5
- fix #525659 (man page for logrotate.conf)
- Previous message (by thread): rpms/eclipse-mylyn/devel fetch-mylyn.sh, 1.12, 1.13 eclipse-mylyn.spec, 1.45, 1.46 .cvsignore, 1.11, 1.12 eclipse-mylyn-addfedoracustomizations.patch, 1.10, 1.11 sources, 1.14, 1.15
- Next message (by thread): File Linux-PAM-1.1.1.tar.bz2 uploaded to lookaside cache by tmraz
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list