30 lines
870 B
Diff
30 lines
870 B
Diff
From 1eb7a7061af2f91149233937f3db066d303c7684 Mon Sep 17 00:00:00 2001
|
|
From: Wayne Davison <wayned@samba.org>
|
|
Date: Thu, 14 Jun 2018 15:19:34 -0700
|
|
Subject: [PATCH 04/36] Need to mark xattr rules in get_rule_prefix().
|
|
|
|
This fixes the bug of xattr filters getting sent as a normal filter rule
|
|
(since the 'x' was dropped in the prefix).
|
|
|
|
Signed-off-by: root <root@localhost.localdomain>
|
|
---
|
|
exclude.c | 2 ++
|
|
2 files changed, 4 insertions(+)
|
|
|
|
diff --git a/exclude.c b/exclude.c
|
|
index 7989fb3e..a0090b29 100644
|
|
--- a/exclude.c
|
|
+++ b/exclude.c
|
|
@@ -1286,6 +1286,8 @@ char *get_rule_prefix(filter_rule *rule, const char *pat, int for_xfer,
|
|
}
|
|
if (rule->rflags & FILTRULE_EXCLUDE_SELF)
|
|
*op++ = 'e';
|
|
+ if (rule->rflags & FILTRULE_XATTR)
|
|
+ *op++ = 'x';
|
|
if (rule->rflags & FILTRULE_SENDER_SIDE
|
|
&& (!for_xfer || protocol_version >= 29))
|
|
*op++ = 's';
|
|
--
|
|
2.19.1
|
|
|