From: Cliff Woolley Date: Fri, 17 May 2002 18:01:57 +0000 (+0000) Subject: Binary files on cygwin must be opened in binary mode in the X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53e88425d2c6ccb475481eef2922dfa5ec0e2511;p=thirdparty%2Fapache%2Fhttpd.git Binary files on cygwin must be opened in binary mode in the default handler or they will be corrupted, just as with the other \r\n platforms. PR: 9185 Reviewed by: William Rowe git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@95157 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/CHANGES b/src/CHANGES index f42ad8dc882..95e6a453514 100644 --- a/src/CHANGES +++ b/src/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 1.3.25 + *) Fixed sending of binary files under Cygwin. PR 9185. + [Cliff Woolley] + *) Added Cygwin directory layout to config.layout file. [Stipe Tolj, ] diff --git a/src/main/http_core.c b/src/main/http_core.c index d37b04bd83b..b0339d8eb10 100644 --- a/src/main/http_core.c +++ b/src/main/http_core.c @@ -3834,7 +3834,7 @@ static int default_handler(request_rec *r) return METHOD_NOT_ALLOWED; } -#if defined(OS2) || defined(WIN32) || defined(NETWARE) +#if defined(OS2) || defined(WIN32) || defined(NETWARE) || defined(CYGWIN) /* Need binary mode for OS/2 */ f = ap_pfopen(r->pool, r->filename, "rb"); #else