From: Bill Stoddard Date: Sun, 17 Oct 1999 15:26:07 +0000 (+0000) Subject: A couple of arg swaps on ap_open X-Git-Tag: 1.3.10~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11181747828b8862f3e92190c6728fa4c7730c48;p=thirdparty%2Fapache%2Fhttpd.git A couple of arg swaps on ap_open git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83999 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index 68933ea7768..64105c56a53 100644 --- a/modules/generators/mod_cgi.c +++ b/modules/generators/mod_cgi.c @@ -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;