From ac4f91a5ee5accba626a8f7317ff7a10b543f95b Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 5 Mar 2005 04:34:04 +0000 Subject: [PATCH] Added a hack that sets the ITEM_REPORT_XATTRS bit (which is the old ITEM_UPDATING bit) when ITEM_TRANSFER or ITEM_LOCAL_CHANGE is set. This lets us interact compatibly when sending itemized bits to an earlier pre-release. --- generator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generator.c b/generator.c index f645bf75..7403945c 100644 --- a/generator.c +++ b/generator.c @@ -336,6 +336,9 @@ void itemize(struct file_struct *file, int ndx, int statret, STRUCT_STAT *st, if (protocol_version >= 29) { if (ndx >= 0) write_int(sock_f_out, ndx); + /* XXX Temorary compatibility hack */ + if (iflags & (ITEM_TRANSFER|ITEM_LOCAL_CHANGE)) + iflags |= ITEM_REPORT_XATTRS; /* ITEM_UPDATE */ write_shortint(sock_f_out, iflags); if (hlink) write_vstring(sock_f_out, hlink, strlen(hlink)); -- 2.34.1