[mod_dirlisting] fix bug not showing HEADER.txt

(thx gsker)

fix bug not showing HEADER.txt or README.txt
(regression in lighttpd 1.4.60 and 1.4.61)
personal/stbuehler/tests-path
Glenn Strauss 2021-11-28 15:15:33 -05:00
parent 71175df1c9
commit cba6a1ab54
1 changed files with 1 additions and 1 deletions

View File

@ -596,7 +596,7 @@ static void http_list_directory_include_file(request_st * const r, const handler
stat_cache_get_entry_open(path, r->conf.follow_symlink);
if (len)
buffer_truncate(&r->physical.path, len);
if (NULL == sce || sce->fd < 0 || 0 != sce->st.st_size)
if (NULL == sce || sce->fd < 0 || 0 == sce->st.st_size)
return;
chunkqueue * const cq = &r->write_queue;