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-Tag: v3.0.0pre1~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d585188f9dbb001006322fee6aab78657a12a8e;p=thirdparty%2Frsync.git 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; }