applied simple nohang patch from Wayne Davison
[rsync/rsync.git] / token.c
diff --git a/token.c b/token.c
index e1039e2..2967b44 100644 (file)
--- a/token.c
+++ b/token.c
@@ -37,6 +37,12 @@ void set_compression(char *fname)
 
        if (!dont || !*dont) return;
 
+       if ((dont[0] == '*') && (!dont[1])) {
+               /* an optimization to skip the rest of this routine */
+               compression_level = 0;
+               return;
+       }
+
        dont = strdup(dont);
        fname = strdup(fname);
        if (!dont || !fname) return;