summaryrefslogtreecommitdiff
path: root/exclude.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-12-30 12:25:33 -0800
committerWayne Davison <wayned@samba.org>2009-12-30 12:25:33 -0800
commit808b1d61c0085d4d8fba6a949da5bbd11480c59c (patch)
treed9c0c271c0c07733a94fff3cf650170ae9287075 /exclude.c
parent2f01fb11526f4a8fed3e5e6189706845c04136f3 (diff)
downloadrsync-808b1d61c0085d4d8fba6a949da5bbd11480c59c.tar.gz
Fixed the passing of a '/' modifier for an absolute-path filter rule.
Diffstat (limited to 'exclude.c')
-rw-r--r--exclude.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/exclude.c b/exclude.c
index 3538a74b..70fa8c8a 100644
--- a/exclude.c
+++ b/exclude.c
@@ -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)