Re: [squid-users] 'include' feature

From: Adrian Chadd <adrian@dont-contact.us>
Date: Wed, 9 Jan 2008 11:37:26 +0900

On Wed, Jan 09, 2008, Amos Jeffries wrote:
> Dave wrote:
> >I still get
> >
> >unrecognized: 'include /path/to/included/file/squid.acl.config'
> >
> >when trying it out
>
> There seems to be a one-off error in the initial logics. whitespace in
> the config line is at character 7 not 8.
> Fixing that here in the 3.1 port solves the problem you are seeing and
> if the config is correct it works properly.

Oops!

        if (strlen(config_input_line) >= 9 && strncmp(config_input_line, "include", 7) == 0 && (config_input_line[8] == ' ' || config_input_line[8] == '\t')) {

Yeah. Ok, thats easy to fix. Change the [8] to [7].

> "FATAL: Bungled garbage-from-working-line-#2 line 3: acl"
> 'garbage-from-working-line-#2' is a tail of the acl line (2) preceeding
> the intentionally bungled one (3) containing just "acl ".

Give me an example config setup with that?

adrian
Received on Tue Jan 08 2008 - 19:28:23 MST

This archive was generated by hypermail pre-2.1.9 : Fri Feb 01 2008 - 12:00:04 MST