rpms/cronolog/EL-5 cronolog-largefile.patch, NONE, 1.1 cronolog.spec, 1.1, 1.2

Sean Reifschneider (jafo) fedora-extras-commits at redhat.com
Fri Jul 6 03:20:43 UTC 2007


Author: jafo

Update of /cvs/extras/rpms/cronolog/EL-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2518

Modified Files:
	cronolog.spec 
Added Files:
	cronolog-largefile.patch 
Log Message:
Adding LARGEFILE support.


cronolog-largefile.patch:

--- NEW FILE cronolog-largefile.patch ---
--- /tmp/cronolog.c	2003-10-13 12:35:17.000000000 +0000
+++ src/cronolog.c	2003-10-13 12:36:36.000000000 +0000
@@ -82,6 +82,8 @@
  * written to "file" (e.g. /dev/console) or to stderr if "file" is "-".
  */
 
+#define _GNU_SOURCE	1
+
 #include "cronoutils.h"
 #include "getopt.h"
 
@@ -394,13 +396,13 @@
 	   timestamp(*pnext_period), *pnext_period,
 	   *pnext_period - time_now));
     
-    log_fd = open(pfilename, O_WRONLY|O_CREAT|O_APPEND, FILE_MODE);
+    log_fd = open(pfilename, O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, FILE_MODE);
     
 #ifndef DONT_CREATE_SUBDIRS
     if ((log_fd < 0) && (errno == ENOENT))
     {
 	create_subdirs(pfilename);
-	log_fd = open(pfilename, O_WRONLY|O_CREAT|O_APPEND, FILE_MODE);
+	log_fd = open(pfilename, O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, FILE_MODE);
     }
 #endif	    
 


Index: cronolog.spec
===================================================================
RCS file: /cvs/extras/rpms/cronolog/EL-5/cronolog.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- cronolog.spec	27 Jan 2007 20:34:32 -0000	1.1
+++ cronolog.spec	6 Jul 2007 03:20:08 -0000	1.2
@@ -1,6 +1,6 @@
 Name:            cronolog
 Version:         1.6.2
-Release:         4%{?dist}
+Release:         5%{?dist}
 Summary:         Web log rotation program for Apache
 
 Group:           Applications/System
@@ -10,6 +10,7 @@
 BuildRoot:       %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires(post):  /sbin/install-info
 Requires(preun): /sbin/install-info
+Patch1:          cronolog-largefile.patch
 
 %description
 cronolog is a simple filter program that reads log file entries from
@@ -21,6 +22,7 @@
 
 %prep
 %setup -q
+%patch1
 
 %build
 %configure
@@ -54,6 +56,10 @@
 %{_infodir}/*
 
 %changelog
+* Thu Jul 05 2007 Sean Reifschneider <jafo at tummy.com> 1.6.2-5
+- Included patch for LARGEFILE support, fix provided by Arenas Belon, Carlo
+  Marcelo.
+
 * Sat Jan 27 2007 Sean Reifschneider <jafo at tummy.com> 1.6.2-4
 - Updating based on feedback from ville.skytta.
 - Moved cronosplit to /usr/bin




More information about the fedora-extras-commits mailing list