]> git.kaiwu.me - nginx.git/commit
Improved check for duplicate path names in ngx_add_path().
authorValentin Bartenev <vbart@nginx.com>
Mon, 16 Sep 2013 14:49:23 +0000 (18:49 +0400)
committerValentin Bartenev <vbart@nginx.com>
Mon, 16 Sep 2013 14:49:23 +0000 (18:49 +0400)
commitdb1532944cef68f835917894b8e9fc569d1712b4
tree0c93c5e1e44073fa5b9a3432dc82055e3343978b
parenteb10d8f71ec237d77fc5dec58917087700661eb0
Improved check for duplicate path names in ngx_add_path().

The same path names with different "data" context should not be allowed.

In particular it rejects configurations like this:

    proxy_cache_path /var/cache/ keys_zone=one:10m max_size=1g inactive=5m;
    proxy_cache_path /var/cache/ keys_zone=two:20m max_size=4m inactive=30s;
src/core/ngx_file.c