Mercurial > hg > nginx
diff src/core/ngx_conf_file.c @ 99:a059e1aa65d4
nginx-0.0.1-2003-06-02-19:24:30 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 02 Jun 2003 15:24:30 +0000 |
parents | c9b243802a17 |
children | 7ebc8b7fb816 |
line wrap: on
line diff
--- a/src/core/ngx_conf_file.c +++ b/src/core/ngx_conf_file.c @@ -32,7 +32,7 @@ char *ngx_conf_parse(ngx_conf_t *cf, ngx /* open configuration file */ - fd = ngx_open_file(filename->data, NGX_FILE_RDONLY); + fd = ngx_open_file(filename->data, NGX_FILE_RDONLY, NGX_FILE_OPEN); if (fd == NGX_INVALID_FILE) { ngx_log_error(NGX_LOG_EMERG, cf->log, ngx_errno, ngx_open_file_n " %s failed", filename->data); @@ -142,7 +142,7 @@ ngx_log_debug(cf->log, "command '%s'" _ if (cmd->type & argument_number[cf->args->nelts - 1]) { valid = 1; - } else if (cmd->type & NGX_CONF_ANY1) { + } else if (cmd->type & NGX_CONF_1MORE) { if (cf->args->nelts != 1) { valid = 1;