comparison src/core/ngx_conf_file.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 666302d1234c
children db7c468c447d
comparison
equal deleted inserted replaced
1047:ea6f43a88208 1048:c4f666fc3a7e
74 74
75 if (filename) { 75 if (filename) {
76 76
77 /* open configuration file */ 77 /* open configuration file */
78 78
79 fd = ngx_open_file(filename->data, NGX_FILE_RDONLY, NGX_FILE_OPEN); 79 fd = ngx_open_file(filename->data, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0);
80 if (fd == NGX_INVALID_FILE) { 80 if (fd == NGX_INVALID_FILE) {
81 ngx_conf_log_error(NGX_LOG_EMERG, cf, ngx_errno, 81 ngx_conf_log_error(NGX_LOG_EMERG, cf, ngx_errno,
82 ngx_open_file_n " \"%s\" failed", 82 ngx_open_file_n " \"%s\" failed",
83 filename->data); 83 filename->data);
84 return NGX_CONF_ERROR; 84 return NGX_CONF_ERROR;