From: Wayne Davison Date: Sat, 14 Jul 2007 19:36:52 +0000 (+0000) Subject: Make sure that any "dont compress" patterns that have wildcards in a X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/0d585188f9dbb001006322fee6aab78657a12a8e Make sure that any "dont compress" patterns that have wildcards in a suffix match stay in the wildcard-matching list. --- 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; }