]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Modified rotatelogs to behave the same as the core log writer.
authorGuenter Knauf <fuankg@apache.org>
Wed, 6 Oct 2010 10:24:18 +0000 (10:24 +0000)
committerGuenter Knauf <fuankg@apache.org>
Wed, 6 Oct 2010 10:24:18 +0000 (10:24 +0000)
Author wrowe, reviewed by rjung, sf.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@1004971 13f79535-47bb-0310-9956-ffa450edef68

STATUS
support/rotatelogs.c

diff --git a/STATUS b/STATUS
index ef528c14175ac7ea466bf1152296977769098e53..5f2ccddb33f17f940aae31ff762b3c5c230e5a6d 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -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
index 9d36909bb13d8e74ad824804e6df717acb790b79..e7b3a0c5c11c3936617829bc73b980b3697167ab 100644 (file)
@@ -208,7 +208,8 @@ int main (int argc, const char * const argv[])
                 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