stoddard    99/10/17 08:26:07

  Modified:    src/modules/standard mod_cgi.c
  Log:
  A couple of arg swaps on ap_open
  
  Revision  Changes    Path
  1.12      +4 -4      apache-2.0/src/modules/standard/mod_cgi.c
  
  Index: mod_cgi.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_cgi.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- mod_cgi.c 1999/10/15 00:05:01     1.11
  +++ mod_cgi.c 1999/10/17 15:26:07     1.12
  @@ -175,8 +175,8 @@
       if (!conf->logname ||
        ((stat(ap_server_root_relative(r->pool, conf->logname), &finfo) == 0)
         &&   (finfo.st_size > conf->logbytes)) ||
  -          (ap_open(&f, r->pool, ap_server_root_relative(r->pool, 
conf->logname),
  -                   APR_APPEND | APR_BUFFERED, APR_OS_DEFAULT) != 
APR_SUCCESS)) {
  +          (ap_open(&f, ap_server_root_relative(r->pool, conf->logname),
  +                   APR_APPEND | APR_BUFFERED, APR_OS_DEFAULT, r->pool) != 
APR_SUCCESS)) {
        return ret;
       }
   
  @@ -205,8 +205,8 @@
       if (!conf->logname ||
        ((stat(ap_server_root_relative(r->pool, conf->logname), &finfo) == 0)
         &&   (finfo.st_size > conf->logbytes)) ||
  -         (ap_open(&f, r->pool, ap_server_root_relative(r->pool, 
conf->logname),
  -                  APR_APPEND, APR_OS_DEFAULT) != APR_SUCCESS)) {
  +         (ap_open(&f, ap_server_root_relative(r->pool, conf->logname),
  +                  APR_APPEND, APR_OS_DEFAULT, r->pool) != APR_SUCCESS)) {
        /* Soak up script output */
        while (ap_bgets(argsbuffer, HUGE_STRING_LEN, script_in) > 0)
            continue;
  
  
  

Reply via email to