From fbd9b4399f6bb15b63f8641494730096bdec91aa Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 13 Jul 2007 08:30:34 +0000 Subject: proxy_store and fastcgi_store were changed, proxy_store_access and fastcgi_store_access were added --- src/core/ngx_file.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/core/ngx_file.c') diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c index 656610dc8..55cfd7ca2 100644 --- a/src/core/ngx_file.c +++ b/src/core/ngx_file.c @@ -303,11 +303,11 @@ ngx_conf_set_access_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) ngx_uint_t i, right, shift, *access; access = (ngx_uint_t *) (confp + cmd->offset); - + if (*access != NGX_CONF_UNSET_UINT) { return "is duplicate"; } - + value = cf->args->elts; *access = 0600; @@ -328,10 +328,6 @@ ngx_conf_set_access_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) shift = 0; p += sizeof("all:") - 1; - } else if (ngx_strncmp(p, "off", sizeof("off") - 1) == 0) { - *access = 0; - return NGX_CONF_OK; - } else { goto invalid; } @@ -348,7 +344,7 @@ ngx_conf_set_access_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) *access |= right << shift; } - + return NGX_CONF_OK; invalid: -- cgit