From: Guenter Knauf Date: Wed, 6 Oct 2010 10:24:18 +0000 (+0000) Subject: Modified rotatelogs to behave the same as the core log writer. X-Git-Tag: 2.0.64~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f45cbbde98f871bae4172efcf37dbb22187c712;p=thirdparty%2Fapache%2Fhttpd.git Modified rotatelogs to behave the same as the core log writer. 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 --- diff --git a/STATUS b/STATUS index ef528c14175..5f2ccddb33f 100644 --- 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 diff --git a/support/rotatelogs.c b/support/rotatelogs.c index 9d36909bb13..e7b3a0c5c11 100644 --- a/support/rotatelogs.c +++ b/support/rotatelogs.c @@ -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