Commit 962800b9 authored by Colm MacCarthaigh's avatar Colm MacCarthaigh
Browse files

Add APR_FOPEN_BINARY to the options passed to apr for opening the

cache header files.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@239436 13f79535-47bb-0310-9956-ffa450edef68
parent ce53fda9
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -449,8 +449,8 @@ static int process_dir(char *path, apr_pool_t *pool)
        case HEADERDATA:
            nextpath = apr_pstrcat(p, path, "/", d->basename,
                                   CACHE_HEADER_SUFFIX, NULL);
            if (apr_file_open(&fd, nextpath, APR_READ, APR_OS_DEFAULT,
                              p) == APR_SUCCESS) {
            if (apr_file_open(&fd, nextpath, APR_FOPEN_READ | APR_FOPEN_BINARY, 
                              APR_OS_DEFAULT, p) == APR_SUCCESS) {
                len = sizeof(format);
                if (apr_file_read_full(fd, &format, len, 
                                       &len) == APR_SUCCESS) {
@@ -522,8 +522,8 @@ static int process_dir(char *path, apr_pool_t *pool)
            current = apr_time_now();
            nextpath = apr_pstrcat(p, path, "/", d->basename,
                                   CACHE_HEADER_SUFFIX, NULL);
            if (apr_file_open(&fd, nextpath, APR_READ, APR_OS_DEFAULT,
                              p) == APR_SUCCESS) {
            if (apr_file_open(&fd, nextpath, APR_FOPEN_READ | APR_FOPEN_BINARY,
                              APR_OS_DEFAULT, p) == APR_SUCCESS) {
                len = sizeof(format);
                if (apr_file_read_full(fd, &format, len, 
                                       &len) == APR_SUCCESS) {