Fixed the way get_rule_prefix() turns the MATCHFLG_WORD_SPLIT flag
authorWayne Davison <wayned@samba.org>
Fri, 4 Feb 2005 21:16:39 +0000 (21:16 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 4 Feb 2005 21:16:39 +0000 (21:16 +0000)
back into a modifier character.

exclude.c

index 9fdae3e35488e22ae8be9c11e9a3f52962e419fa..eb6c49f16efce1393c5faa4dd886d72fb3ac5d88 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++ = '+';