From: wessels <> Date: Thu, 7 Nov 1996 05:14:04 +0000 (+0000) Subject: Make cache_stoplist_pattern appendable X-Git-Tag: SQUID_3_0_PRE1~5516 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe8b934289423f387fdbe74474e480a3716c816e;p=thirdparty%2Fsquid.git Make cache_stoplist_pattern appendable --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index fdad3f6358..2c2fe20f3e 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,5 +1,5 @@ /* - * $Id: cache_cf.cc,v 1.130 1996/11/06 08:16:42 wessels Exp $ + * $Id: cache_cf.cc,v 1.131 1996/11/06 22:14:04 wessels Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -1011,6 +1011,15 @@ parseCachemgrPasswd(void) wordlistDestroy(&actions); } +static void +parseStoplistPattern(int icase) +{ + relist *r, **T; + r = aclParseRegexList(icase); + for (T = &Config.cache_stop_relist; *T; T=&(*T)->next); + *T = r; +} + int parseConfigFile(const char *file_name) { @@ -1136,9 +1145,9 @@ parseConfigFile(const char *file_name) else if (!strcmp(token, "cache_stoplist")) parseWordlist(&Config.cache_stoplist); else if (!strcmp(token, "cache_stoplist_pattern")) - Config.cache_stop_relist = aclParseRegexList(0); + parseStoplistPattern(0); else if (!strcmp(token, "cache_stoplist_pattern/i")) - Config.cache_stop_relist = aclParseRegexList(1); + parseStoplistPattern(1); #if DELAY_HACK else if (!strcmp(token, "delay_access"))