]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Do not die when parsing obsolete log_access and log_icap (#1832)
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 6 Jun 2024 07:24:52 +0000 (07:24 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 6 Jun 2024 08:21:50 +0000 (08:21 +0000)
All obsolete directives except for log_access and log_icap do not result
in Squid instance death today. Treating those two directives specially
is not necessary but does complicate reconfiguration improvements a bit.

Future refactoring might add support for treating (some or all) obsolete
directives as fatal configuration errors, but we can simplify for now.

src/cache_cf.cc

index 1ceb62564ca5fb8af48fdd958cdef2480dadab4d..d88fc0dcf13261d754059c613c0bc117d39fe4e0 100644 (file)
@@ -1075,16 +1075,6 @@ parse_obsolete(const char *name)
         Config.redirectChildren.concurrency = cval;
     }
 
-    if (!strcmp(name, "log_access")) {
-        self_destruct();
-        return;
-    }
-
-    if (!strcmp(name, "log_icap")) {
-        self_destruct();
-        return;
-    }
-
     if (!strcmp(name, "ignore_ims_on_miss")) {
         // the replacement directive cache_revalidate_on_miss has opposite meanings for ON/OFF value
         // than the 2.7 directive. We need to parse and invert the configured value.