From 11f28c3d0437cbff86f757bd85eb4378f6f95039 Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Mon, 30 Jul 2001 15:11:40 +0000 Subject: [PATCH] Win32: Get exec cgi tag working. finfo.protection == 0 on Windows from the apr_stat() call in directory walk (because discovering the permissions on Windows is ridiculously expensive). All we really need to know is whether the file exists. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89788 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 1 + modules/generators/mod_cgi.c | 2 +- modules/generators/mod_cgid.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index c93d343d49..1b63ba0c79 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,5 @@ Changes with Apache 2.0.23-dev + *) Win32: Get SSI exec cgi tag working. [Bill Stoddard] *) Add a single listener/multiple worker MPM. This MPM is definately not fully correct, but it allows us to solve many diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index 96596150a8..b76747308d 100644 --- a/modules/generators/mod_cgi.c +++ b/modules/generators/mod_cgi.c @@ -815,7 +815,7 @@ static int include_cgi(char *s, request_rec *r, ap_filter_t *next, if ((rr->path_info && rr->path_info[0]) || rr->args) { return -1; } - if (rr->finfo.protection == 0) { + if (rr->finfo.filetype == 0) { return -1; } diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index 913ee08869..b991e42afe 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -1060,7 +1060,7 @@ static int include_cgi(char *s, request_rec *r, ap_filter_t *next, if ((rr->path_info && rr->path_info[0]) || rr->args) { return -1; } - if (rr->finfo.protection == 0) { + if (rr->finfo.filetype == 0) { return -1; } -- 2.50.1