Make sure that any "dont compress" patterns that have wildcards in a
authorWayne Davison <wayned@samba.org>
Sat, 14 Jul 2007 19:36:52 +0000 (19:36 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 14 Jul 2007 19:36:52 +0000 (19:36 +0000)
suffix match stay in the wildcard-matching list.

token.c

diff --git a/token.c b/token.c
index 81e2537..181e734 100644 (file)
--- 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;
                }