summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2004-05-06 12:18:07 +0200
committerJoe Orton <jorton@apache.org>2004-05-06 12:18:07 +0200
commit96c0ef3f90256401aeff0ca9480270d18f0df5b9 (patch)
treecd6b3d691825c74fa222397f9b7b20b61ce7349e /server
parent* modules/generators/mod_cgi.c (cgi_handler): Soak up stderr from nph- (diff)
downloadapache2-96c0ef3f90256401aeff0ca9480270d18f0df5b9.tar.xz
apache2-96c0ef3f90256401aeff0ca9480270d18f0df5b9.zip
* modules/loggers/mod_log_config.c, server/log.c (open_error_log,
ap_replace_stderr_log): Use APR_LARGEFILE when opening log files, to allow log files to exceed the 2Gb limit if necessary. PR: 13511 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103627 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r--server/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/log.c b/server/log.c
index 278717d9d1..fcef37aa64 100644
--- a/server/log.c
+++ b/server/log.c
@@ -158,7 +158,7 @@ AP_DECLARE(apr_status_t) ap_replace_stderr_log(apr_pool_t *p,
return APR_EBADPATH;
}
if ((rc = apr_file_open(&stderr_file, filename,
- APR_APPEND | APR_WRITE | APR_CREATE,
+ APR_APPEND | APR_WRITE | APR_CREATE | APR_LARGEFILE,
APR_OS_DEFAULT, p)) != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_STARTUP, rc, NULL,
"%s: could not open error log file %s.",
@@ -271,7 +271,7 @@ static int open_error_log(server_rec *s, apr_pool_t *p)
return DONE;
}
if ((rc = apr_file_open(&s->error_log, fname,
- APR_APPEND | APR_WRITE | APR_CREATE,
+ APR_APPEND | APR_WRITE | APR_CREATE | APR_LARGEFILE,
APR_OS_DEFAULT, p)) != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_STARTUP, rc, NULL,
"%s: could not open error log file %s.",