From: William A. Rowe Jr Date: Tue, 4 Jun 2002 02:21:36 +0000 (+0000) Subject: Feedback appreciated - I'm guessing that we can trust the isapi app X-Git-Tag: 2.0.37~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c3e505cd5f255d6f6abf8a2fd381a91700a0328;p=apache Feedback appreciated - I'm guessing that we can trust the isapi app opened file handles correctly for the TransmitFile case. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95498 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/arch/win32/mod_isapi.c b/modules/arch/win32/mod_isapi.c index 81acc00349..89b3242e74 100644 --- a/modules/arch/win32/mod_isapi.c +++ b/modules/arch/win32/mod_isapi.c @@ -963,7 +963,12 @@ int APR_THREAD_FUNC ServerSupportFunction(isapi_cid *cid, return 0; } - if ((rv = apr_os_file_put(&fd, &tf->hFile, 0, r->pool)) != APR_SUCCESS) { + /* Presume the handle was opened with the CORRECT semantics + * for TransmitFile + */ + if ((rv = apr_os_file_put(&fd, &tf->hFile, + APR_READ | APR_XTHREAD, r->pool)) + != APR_SUCCESS) { return 0; } if (tf->BytesToWrite) {