Added a hack that sets the ITEM_REPORT_XATTRS bit (which is the old
authorWayne Davison <wayned@samba.org>
Sat, 5 Mar 2005 04:34:04 +0000 (04:34 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 5 Mar 2005 04:34:04 +0000 (04:34 +0000)
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

index f645bf7..7403945 100644 (file)
@@ -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));