comparison src/http/modules/ngx_http_flv_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 b310630d129e
children cc114c85be0f ca6845b19113
comparison
equal deleted inserted replaced
1047:ea6f43a88208 1048:c4f666fc3a7e
107 cln = ngx_pool_cleanup_add(r->pool, sizeof(ngx_pool_cleanup_file_t)); 107 cln = ngx_pool_cleanup_add(r->pool, sizeof(ngx_pool_cleanup_file_t));
108 if (cln == NULL) { 108 if (cln == NULL) {
109 return NGX_HTTP_INTERNAL_SERVER_ERROR; 109 return NGX_HTTP_INTERNAL_SERVER_ERROR;
110 } 110 }
111 111
112 fd = ngx_open_file(path.data, NGX_FILE_RDONLY, NGX_FILE_OPEN); 112 fd = ngx_open_file(path.data, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0);
113 113
114 if (fd == NGX_INVALID_FILE) { 114 if (fd == NGX_INVALID_FILE) {
115 err = ngx_errno; 115 err = ngx_errno;
116 116
117 if (err == NGX_ENOENT 117 if (err == NGX_ENOENT