From: Amos Jeffries Date: Tue, 27 Oct 2015 22:21:38 +0000 (-0700) Subject: Avoid errors when parsing manager ACL in old squid.conf X-Git-Tag: SQUID_3_5_11~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b70dfde80c312da8182f487ef9b8e6ddd0e04ce1;p=thirdparty%2Fsquid.git Avoid errors when parsing manager ACL in old squid.conf ACL manager is now a built-in definition and has a different type. That has been causing FATAL errors when parsing old squid.conf. We can be nicer and just ignore the obsolete config lines. --- diff --git a/src/acl/Acl.cc b/src/acl/Acl.cc index 40b8858769..18fc4c0f15 100644 --- a/src/acl/Acl.cc +++ b/src/acl/Acl.cc @@ -227,6 +227,10 @@ ACL::ParseAclLine(ConfigParser &parser, ACL ** head) } theType = "localport"; debugs(28, DBG_IMPORTANT, "UPGRADE: ACL 'myport' type is has been renamed to 'localport' and matches the port the client connected to."); + } else if (strcmp(theType, "proto") == 0 && strcmp(aclname, "manager") == 0) { + // ACL manager is now a built-in and has a different type. + debugs(28, DBG_PARSE_NOTE(DBG_IMPORTANT), "UPGRADE: ACL 'manager' is now a built-in ACL. Remove it from your config file."); + return; // ignore the line } if (!Prototype::Registered(theType)) {