Fixed the passing of a '/' modifier for an absolute-path filter rule.

This commit is contained in:
Wayne Davison
2009-12-30 12:25:33 -08:00
parent 2f01fb1152
commit 808b1d61c0
2 changed files with 5 additions and 0 deletions

3
NEWS
View File

@@ -26,6 +26,9 @@ Changes since 3.0.6:
- Get the permissions right on a --fake-super transferred directory that
needs more owner permissions to emulate root behavior.
- An absolute-path filter rule (i.e. with a '/' modifier) no longer loses
its modifier when sending the filter rules to the remote rsync.
- Improved the "--delete does not work without -r or -d" message.
- Improved rsync's handling of --timeout to avoid a weird timeout case

View File

@@ -1121,6 +1121,8 @@ char *get_rule_prefix(int match_flags, const char *pat, int for_xfer,
else
legal_len = 0;
if (match_flags & MATCHFLG_ABS_PATH)
*op++ = '/';
if (match_flags & MATCHFLG_NEGATE)
*op++ = '!';
if (match_flags & MATCHFLG_CVS_IGNORE)