httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: httpd-2.0/server log.c
Date Thu, 06 May 2004 10:18:07 GMT
jorton      2004/05/06 03:18:07

  Modified:    modules/loggers mod_log_config.c
               server   log.c
  Log:
  * 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
  
  Revision  Changes    Path
  1.117     +1 -1      httpd-2.0/modules/loggers/mod_log_config.c
  
  Index: mod_log_config.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/loggers/mod_log_config.c,v
  retrieving revision 1.116
  retrieving revision 1.117
  diff -w -d -u -r1.116 -r1.117
  --- mod_log_config.c	10 Apr 2004 17:48:52 -0000	1.116
  +++ mod_log_config.c	6 May 2004 10:18:06 -0000	1.117
  @@ -171,7 +171,7 @@
   module AP_MODULE_DECLARE_DATA log_config_module;
   
   
  -static int xfer_flags = (APR_WRITE | APR_APPEND | APR_CREATE);
  +static int xfer_flags = (APR_WRITE | APR_APPEND | APR_CREATE | APR_LARGEFILE);
   static apr_fileperms_t xfer_perms = APR_OS_DEFAULT;
   static apr_hash_t *log_hash;
   static apr_status_t ap_default_log_writer(request_rec *r,
  
  
  
  1.144     +2 -2      httpd-2.0/server/log.c
  
  Index: log.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/log.c,v
  retrieving revision 1.143
  retrieving revision 1.144
  diff -w -d -u -r1.143 -r1.144
  --- log.c	9 Feb 2004 20:40:49 -0000	1.143
  +++ log.c	6 May 2004 10:18:07 -0000	1.144
  @@ -158,7 +158,7 @@
           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 @@
               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.",
  
  
  

Mime
View raw message