From 8ce8f6667f3f14c004148138c0aec3dff79c350b Mon Sep 17 00:00:00 2001 From: Andrey Belov Date: Mon, 13 Feb 2012 16:32:21 +0000 Subject: Support for disable_symlinks in various modules. --- src/http/modules/perl/nginx.xs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/http/modules/perl/nginx.xs') diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs index dc69d509a..8def03eb1 100644 --- a/src/http/modules/perl/nginx.xs +++ b/src/http/modules/perl/nginx.xs @@ -662,6 +662,9 @@ sendfile(r, filename, offset = -1, bytes = 0) of.min_uses = clcf->open_file_cache_min_uses; of.errors = clcf->open_file_cache_errors; of.events = clcf->open_file_cache_events; +#if (NGX_HAVE_OPENAT) + of.disable_symlinks = clcf->disable_symlinks; +#endif if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool) != NGX_OK) -- cgit