From 2f6d08ae45f962487f969e0e84c8853a8b178e54 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Sat, 27 Jan 2001 23:35:21 +0000 Subject: [PATCH] Another module to cooperate with APR_FINFO_ git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87878 13f79535-47bb-0310-9956-ffa450edef68 --- modules/generators/mod_cgi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index aaf4d10dc1..9c1c3e2f3d 100644 --- a/modules/generators/mod_cgi.c +++ b/modules/generators/mod_cgi.c @@ -195,7 +195,7 @@ static int log_scripterror(request_rec *r, cgi_server_conf * conf, int ret, if (!conf->logname || ((apr_stat(&finfo, ap_server_root_relative(r->pool, conf->logname), - APR_FINFO_NORM, r->pool) == APR_SUCCESS) + APR_FINFO_SIZE, r->pool) == APR_SUCCESS) && (finfo.size > conf->logbytes)) || (apr_open(&f, ap_server_root_relative(r->pool, conf->logname), APR_APPEND|APR_WRITE|APR_CREATE, APR_OS_DEFAULT, r->pool) @@ -247,7 +247,7 @@ static int log_script(request_rec *r, cgi_server_conf * conf, int ret, if (!conf->logname || ((apr_stat(&finfo, ap_server_root_relative(r->pool, conf->logname), - APR_FINFO_NORM, r->pool) == APR_SUCCESS) + APR_FINFO_SIZE, r->pool) == APR_SUCCESS) && (finfo.size > conf->logbytes)) || (apr_open(&f, ap_server_root_relative(r->pool, conf->logname), APR_APPEND|APR_WRITE|APR_CREATE, APR_OS_DEFAULT, r->pool) != APR_SUCCESS)) { -- 2.40.0