X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/6e058b4b60e01b874bfe6a9814b1d6b1944d6ae7..1b42f628f495ff0cdaa8a7c219d8ce33192281fe:/token.c diff --git a/token.c b/token.c index 81e25372..171ab6d3 100644 --- a/token.c +++ b/token.c @@ -20,6 +20,7 @@ */ #include "rsync.h" +#include "ifuncs.h" #include "zlib/zlib.h" extern int do_compression; @@ -151,7 +152,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; }