X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/34ca58d440aaaf8717a240a7bf6fb17d240ecc14..0d585188f9dbb001006322fee6aab78657a12a8e:/token.c 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; }