comparison src/http/modules/ngx_http_static_module.c @ 1048:c4f666fc3a7e

ngx_open_file(name, access, create) > ngx_open_file(name, mode, create, access)
author Igor Sysoev <igor@sysoev.ru>
date Thu, 18 Jan 2007 20:15:09 +0000
parents c3ebeee31026
children cc114c85be0f
comparison
equal deleted inserted replaced
1047:ea6f43a88208 1048:c4f666fc3a7e
124 cln = ngx_pool_cleanup_add(r->pool, sizeof(ngx_pool_cleanup_file_t)); 124 cln = ngx_pool_cleanup_add(r->pool, sizeof(ngx_pool_cleanup_file_t));
125 if (cln == NULL) { 125 if (cln == NULL) {
126 return NGX_HTTP_INTERNAL_SERVER_ERROR; 126 return NGX_HTTP_INTERNAL_SERVER_ERROR;
127 } 127 }
128 128
129 fd = ngx_open_file(path.data, NGX_FILE_RDONLY, NGX_FILE_OPEN); 129 fd = ngx_open_file(path.data, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0);
130 130
131 if (fd == NGX_INVALID_FILE) { 131 if (fd == NGX_INVALID_FILE) {
132 err = ngx_errno; 132 err = ngx_errno;
133 133
134 if (err == NGX_ENOENT 134 if (err == NGX_ENOENT