Call wildmatch(), not fnmatch().
[rsync/rsync.git] / token.c
diff --git a/token.c b/token.c
index 0b3aa99..9f33436 100644 (file)
--- a/token.c
+++ b/token.c
@@ -51,7 +51,7 @@ void set_compression(char *fname)
        strlower(fname);
 
        for (tok=strtok(dont," ");tok;tok=strtok(NULL," ")) {
-               if (fnmatch(tok, fname, 0) == 0) {
+               if (wildmatch(tok, fname)) {
                        compression_level = 0;
                        break;
                }