summaryrefslogtreecommitdiff
path: root/sender.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2014-01-19 14:59:43 -0800
committerWayne Davison <wayned@samba.org>2014-01-19 14:59:43 -0800
commit740551d6576f28b42bc53c3e7e7e150adafa20e4 (patch)
treed7535ac23a456ae4d5e178c3d24fad0ab455b01e /sender.c
parenta106ed78d57f901ccfdf5145923f8c2bf6b33ef8 (diff)
downloadrsync-740551d6576f28b42bc53c3e7e7e150adafa20e4.tar.gz
Undo the hard-link xattr optimization in 78286a03.
I'm backing out the xattr optimization that was put in to try to make xattr data sending more optimal on hard-linked files. The code was causing hard-to-reproduce bugs, and it's better to get things done fully & correctly over fully optimally.
Diffstat (limited to 'sender.c')
-rw-r--r--sender.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sender.c b/sender.c
index 12242abe..5ecb6eac 100644
--- a/sender.c
+++ b/sender.c
@@ -177,8 +177,7 @@ static void write_ndx_and_attrs(int f_out, int ndx, int iflags,
if (iflags & ITEM_XNAME_FOLLOWS)
write_vstring(f_out, buf, len);
#ifdef SUPPORT_XATTRS
- if (preserve_xattrs && iflags & ITEM_REPORT_XATTR && do_xfers
- && (protocol_version < 31 || !BITS_SET(iflags, ITEM_XNAME_FOLLOWS|ITEM_LOCAL_CHANGE)))
+ if (preserve_xattrs && iflags & ITEM_REPORT_XATTR && do_xfers)
send_xattr_request(fname, file, f_out);
#endif
}