From: Bill Stoddard Date: Mon, 12 Jun 2000 18:07:31 +0000 (+0000) Subject: Fix Win32 compile break caused by Ryan's stat cleanup. X-Git-Tag: APACHE_2_0_ALPHA_5~352 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29faf4133c92ade6a5e17911286b3f4f8c4bf3e0;p=apache Fix Win32 compile break caused by Ryan's stat cleanup. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85544 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/arch/win32/mod_isapi.c b/modules/arch/win32/mod_isapi.c index ca5789ecf2..923d69428c 100644 --- a/modules/arch/win32/mod_isapi.c +++ b/modules/arch/win32/mod_isapi.c @@ -150,7 +150,7 @@ int isapi_handler (request_rec *r) if (r->finfo.protection == 0) return NOT_FOUND; - if (S_ISDIR(r->finfo.protection)) + if (r->finfo.filetype == APR_DIR) return FORBIDDEN; /* Load the module */ @@ -543,7 +543,7 @@ BOOL WINAPI ServerSupportFunction (HCONN hConn, DWORD dwHSERequest, /* IIS puts a trailing slash on directories, Apache doesn't */ - if (S_ISDIR (subreq->finfo.protection)) { + if (subreq->finfo.filetype == APR_DIR) { int l = strlen((char *)lpvBuffer); ((char *)lpvBuffer)[l] = '\\'; diff --git a/os/win32/mod_isapi.c b/os/win32/mod_isapi.c index ca5789ecf2..923d69428c 100644 --- a/os/win32/mod_isapi.c +++ b/os/win32/mod_isapi.c @@ -150,7 +150,7 @@ int isapi_handler (request_rec *r) if (r->finfo.protection == 0) return NOT_FOUND; - if (S_ISDIR(r->finfo.protection)) + if (r->finfo.filetype == APR_DIR) return FORBIDDEN; /* Load the module */ @@ -543,7 +543,7 @@ BOOL WINAPI ServerSupportFunction (HCONN hConn, DWORD dwHSERequest, /* IIS puts a trailing slash on directories, Apache doesn't */ - if (S_ISDIR (subreq->finfo.protection)) { + if (subreq->finfo.filetype == APR_DIR) { int l = strlen((char *)lpvBuffer); ((char *)lpvBuffer)[l] = '\\';