From 0d585188f9dbb001006322fee6aab78657a12a8e Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 14 Jul 2007 19:36:52 +0000 Subject: [PATCH] Make sure that any "dont compress" patterns that have wildcards in a suffix match stay in the wildcard-matching list. --- token.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/token.c b/token.c index 81e25372..181e7340 100644 --- a/token.c +++ b/token.c @@ -151,7 +151,7 @@ static void init_set_compression(void) /* Move *.foo items into the stuffix tree. */ if (*start == '*' && start[1] == '.' && start[2] - && !strchr(start+2, '.')) { + && !strpbrk(start+2, ".?*")) { add_suffix(&suftree, start[2], start+3); t = start; } -- 2.34.1