Fixed the way get_rule_prefix() turns the MATCHFLG_WORD_SPLIT flag
[rsync/rsync.git] / exclude.c
index 9fdae3e..eb6c49f 100644 (file)
--- a/exclude.c
+++ b/exclude.c
@@ -932,10 +932,10 @@ char *get_rule_prefix(int match_flags, const char *pat, int sending,
        if (match_flags & MATCHFLG_CVS_IGNORE)
                *op++ = 'C';
        else {
-               if (match_flags & MATCHFLG_WORD_SPLIT)
-                       *op++ = 's';
                if (match_flags & MATCHFLG_NO_INHERIT)
                        *op++ = 'n';
+               if (match_flags & MATCHFLG_WORD_SPLIT)
+                       *op++ = 'w';
                if (match_flags & MATCHFLG_NO_PREFIXES) {
                        if (match_flags & MATCHFLG_INCLUDE)
                                *op++ = '+';