httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1004971 - in /httpd/httpd/branches/2.0.x: STATUS support/rotatelogs.c
Date Wed, 06 Oct 2010 10:24:18 GMT
Author: fuankg
Date: Wed Oct  6 10:24:18 2010
New Revision: 1004971

URL: http://svn.apache.org/viewvc?rev=1004971&view=rev
Log:
Modified rotatelogs to behave the same as the core log writer.
Author wrowe, reviewed by rjung, sf.

Modified:
    httpd/httpd/branches/2.0.x/STATUS
    httpd/httpd/branches/2.0.x/support/rotatelogs.c

Modified: httpd/httpd/branches/2.0.x/STATUS
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/STATUS?rev=1004971&r1=1004970&r2=1004971&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/STATUS (original)
+++ httpd/httpd/branches/2.0.x/STATUS Wed Oct  6 10:24:18 2010
@@ -132,22 +132,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  * Stupid-simple patch specific to give rotatelogs the same behavior
-    as the core log writer;
-    +1: wrowe, rjung, sf
---- support/rotatelogs.c	(revision 733150)
-+++ support/rotatelogs.c	(working copy)
-@@ -208,7 +208,8 @@
-                 sprintf(buf2, "%s.%010d", szLogRoot, tLogStart);
-             }
-             tLogEnd = tLogStart + tRotation;
--            apr_file_open(&nLogFD, buf2, APR_READ | APR_WRITE | APR_CREATE | APR_APPEND,
-+            apr_file_open(&nLogFD, buf2, 
-+                          APR_APPEND | APR_WRITE | APR_CREATE | APR_LARGEFILE,
-                           APR_OS_DEFAULT, pool);
-             if (nLogFD == NULL) {
-                 /* Uh-oh. Failed to open the new log file. Try to clear
-
   * mod_negotiation: PR 33112 - Fix for query string preservation after content negotiation
     Trunk patch: http://svn.apache.org/viewvc?view=revision&revision=915407
     2.2.x patch: http://svn.apache.org/viewvc?view=revision&revision=917017

Modified: httpd/httpd/branches/2.0.x/support/rotatelogs.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/support/rotatelogs.c?rev=1004971&r1=1004970&r2=1004971&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/support/rotatelogs.c (original)
+++ httpd/httpd/branches/2.0.x/support/rotatelogs.c Wed Oct  6 10:24:18 2010
@@ -208,7 +208,8 @@ int main (int argc, const char * const a
                 sprintf(buf2, "%s.%010d", szLogRoot, tLogStart);
             }
             tLogEnd = tLogStart + tRotation;
-            apr_file_open(&nLogFD, buf2, APR_READ | APR_WRITE | APR_CREATE | APR_APPEND,
+            apr_file_open(&nLogFD, buf2, 
+                          APR_APPEND | APR_WRITE | APR_CREATE | APR_LARGEFILE,
                           APR_OS_DEFAULT, pool);
             if (nLogFD == NULL) {
                 /* Uh-oh. Failed to open the new log file. Try to clear



Mime
View raw message