summaryrefslogtreecommitdiff
path: root/src/http_chunk.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-12-05 03:16:25 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2020-07-08 19:54:28 -0400
commit68d8d4c532c51cdc5ac4959e002c0ba5cf34a2c1 (patch)
tree624ed9d55263abcbe8aa6c55b74a01c11d0424e9 /src/http_chunk.c
parentb5775b995156f91d94185ec58410a4ccfb7560a4 (diff)
downloadlighttpd-git-68d8d4c532c51cdc5ac4959e002c0ba5cf34a2c1.tar.gz
[multiple] stat_cache singleton
Diffstat (limited to 'src/http_chunk.c')
-rw-r--r--src/http_chunk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http_chunk.c b/src/http_chunk.c
index aa102063..ca2d2b83 100644
--- a/src/http_chunk.c
+++ b/src/http_chunk.c
@@ -56,7 +56,8 @@ static int http_chunk_len_append_tempfile(chunkqueue * const cq, uintmax_t len,
static int http_chunk_append_file_open_fstat(connection * const con, const buffer * const fn, struct stat * const st) {
return
- (con->conf.follow_symlink || !stat_cache_path_contains_symlink(con, fn))
+ (con->conf.follow_symlink
+ || !stat_cache_path_contains_symlink(fn, con->conf.errh))
? stat_cache_open_rdonly_fstat(fn, st, con->conf.follow_symlink)
: -1;
}