httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_rewrite.c
Date Mon, 28 Jul 2003 14:18:48 GMT
nd          2003/07/28 07:18:47

  Modified:    modules/mappers mod_rewrite.c
  Log:
  a long time ago ...
  REWRITELOCK_MODE wasn't used anymore for ages. In the meantime it defined
  the mode of the rewritelog (sic!) file. So fix the misnaming and
  use constants for mode and open flags.
  
  Revision  Changes    Path
  1.190     +4 -6      httpd-2.0/modules/mappers/mod_rewrite.c
  
  Index: mod_rewrite.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_rewrite.c,v
  retrieving revision 1.189
  retrieving revision 1.190
  diff -u -r1.189 -r1.190
  --- mod_rewrite.c	28 Jul 2003 13:02:37 -0000	1.189
  +++ mod_rewrite.c	28 Jul 2003 14:18:45 -0000	1.190
  @@ -211,8 +211,9 @@
   /* default maximum number of internal redirects */
   #define REWRITE_REDIRECT_LIMIT 10
   
  -/* for rewrite lock file */
  -#define REWRITELOCK_MODE ( APR_UREAD | APR_UWRITE | APR_GREAD | APR_WREAD )
  +/* for rewrite log file */
  +#define REWRITELOG_MODE  ( APR_UREAD | APR_UWRITE | APR_GREAD | APR_WREAD )
  +#define REWRITELOG_FLAGS ( APR_WRITE | APR_APPEND | APR_CREATE )
   
   /* max line length (incl.\n) in text rewrite maps */
   #ifndef REWRITE_MAX_TXT_MAP_LINE
  @@ -386,9 +387,6 @@
       const char *fname;
       apr_status_t rc;
       piped_log *pl;
  -    int rewritelog_flags = ( APR_WRITE | APR_APPEND | APR_CREATE );
  -    apr_fileperms_t rewritelog_mode = ( APR_UREAD | APR_UWRITE |
  -                                        APR_GREAD | APR_WREAD );
   
       conf = ap_get_module_config(s->module_config, &rewrite_module);
   
  @@ -420,7 +418,7 @@
               exit(1);
           }
           if ((rc = apr_file_open(&conf->rewritelogfp, fname,
  -                                rewritelog_flags, rewritelog_mode, p))
  +                                REWRITELOG_FLAGS, REWRITELOG_MODE, p))
                   != APR_SUCCESS) {
               ap_log_error(APLOG_MARK, APLOG_ERR, rc, s,
                            "mod_rewrite: could not open RewriteLog "
  
  
  

Mime
View raw message