diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2019-11-20 01:17:06 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-07-08 18:08:52 -0400 |
commit | 2ec70f234a03ed9f580a09d2f4cd04e8c288a5d9 (patch) | |
tree | 29cba9c35db19ef048e38aee544b656b09f56d49 /src/http_chunk.c | |
parent | 09ab979f304011d5ad6d5fad612965c2f03fef78 (diff) | |
download | lighttpd-git-2ec70f234a03ed9f580a09d2f4cd04e8c288a5d9.tar.gz |
[core] stat_cache_path_contains_symlink use errh
use log_error() with con->errh
Diffstat (limited to 'src/http_chunk.c')
-rw-r--r-- | src/http_chunk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http_chunk.c b/src/http_chunk.c index 87af3e7c..22c6950c 100644 --- a/src/http_chunk.c +++ b/src/http_chunk.c @@ -34,9 +34,9 @@ static void http_chunk_append_len(server *srv, connection *con, uintmax_t len) { chunkqueue_append_mem(con->write_queue, CONST_BUF_LEN(b)); } -static int http_chunk_append_file_open_fstat(server *srv, connection *con, buffer *fn, struct stat *st) { +static int http_chunk_append_file_open_fstat(connection *con, buffer *fn, struct stat *st) { if (!con->conf.follow_symlink - && 0 != stat_cache_path_contains_symlink(srv, fn)) { + && 0 != stat_cache_path_contains_symlink(con, fn)) { return -1; } @@ -89,7 +89,7 @@ static void http_chunk_append_file_fd_range(server *srv, connection *con, buffer int http_chunk_append_file_range(server *srv, connection *con, buffer *fn, off_t offset, off_t len) { struct stat st; - const int fd = http_chunk_append_file_open_fstat(srv, con, fn, &st); + const int fd = http_chunk_append_file_open_fstat(con, fn, &st); if (fd < 0) return -1; if (-1 == len) { @@ -109,7 +109,7 @@ int http_chunk_append_file_range(server *srv, connection *con, buffer *fn, off_t int http_chunk_append_file(server *srv, connection *con, buffer *fn) { struct stat st; - const int fd = http_chunk_append_file_open_fstat(srv, con, fn, &st); + const int fd = http_chunk_append_file_open_fstat(con, fn, &st); if (fd < 0) return -1; http_chunk_append_file_fd(srv, con, fn, fd, st.st_size); return 0; |