diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-07-13 08:30:34 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-07-13 08:30:34 +0000 |
commit | fbd9b4399f6bb15b63f8641494730096bdec91aa (patch) | |
tree | f9cb6af113c00c5b683436ef820449326618e621 /src/core/ngx_file.c | |
parent | 852e458014b8b7c21d75f7ece9a0b605e5b070ff (diff) | |
download | nginx-fbd9b4399f6bb15b63f8641494730096bdec91aa.tar.gz nginx-fbd9b4399f6bb15b63f8641494730096bdec91aa.zip |
proxy_store and fastcgi_store were changed,
proxy_store_access and fastcgi_store_access were added
Diffstat (limited to 'src/core/ngx_file.c')
-rw-r--r-- | src/core/ngx_file.c | 10 |
1 files changed, 3 insertions, 7 deletions
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: |