summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2018-11-28 23:05:29 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2018-11-28 23:05:29 -0500
commit06ebbc3ed491244ee3285988b0bc7275a0a47131 (patch)
tree45a19497e6a0b8b14f16726b178c6bb6aa677918
parente92919788f4ba5254d89ff742e5598c06e7a8921 (diff)
downloadlighttpd-git-06ebbc3ed491244ee3285988b0bc7275a0a47131.tar.gz
[core] invert logic for mod_indexfile load warninglighttpd-1.4.52
-rw-r--r--src/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c
index de535a56..cbaac0ff 100644
--- a/src/server.c
+++ b/src/server.c
@@ -1182,7 +1182,7 @@ static int server_main (server * const srv, int argc, char **argv) {
for (buffer *pname = NULL; i < srv->plugins.used; ++i) {
plugin *p = ((plugin **)srv->plugins.ptr)[i];
if (buffer_is_equal_string(p->name, CONST_STR_LEN("indexfile"))) {
- if (!pname) {
+ if (pname) {
log_error_write(srv, __FILE__, __LINE__, "SB",
"Warning: mod_indexfile should be listed in server.modules prior to mod_", pname);
}