]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
A couple of arg swaps on ap_open
authorBill Stoddard <stoddard@apache.org>
Sun, 17 Oct 1999 15:26:07 +0000 (15:26 +0000)
committerBill Stoddard <stoddard@apache.org>
Sun, 17 Oct 1999 15:26:07 +0000 (15:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83999 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_cgi.c

index 68933ea77683a15adf8a4f1d848e9287917d5a53..64105c56a537ca35f92b34f435c658854bfe0209 100644 (file)
@@ -175,8 +175,8 @@ static int log_scripterror(request_rec *r, cgi_server_conf * conf, int ret,
     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 @@ static int log_script(request_rec *r, cgi_server_conf * conf, int ret,
     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;