extern int verbose;
extern int log_before_transfer;
+extern int itemize_changes;
extern int csum_length;
extern struct stats stats;
extern int io_error;
file = flist->files[i];
if (protocol_version >= 29) {
- iflags = read_byte(f_in);
- iflags |= read_byte(f_in) << 8;
+ iflags = read_shortint(f_in);
if (!(iflags & ITEM_UPDATING) || !S_ISREG(file->mode)) {
if (am_server) {
write_int(f_out, i);
- write_byte(f_out, iflags);
- write_byte(f_out, iflags >> 8);
- } else
+ write_shortint(f_out, iflags);
+ } else if (itemize_changes || verbose > 1
+ || iflags & ITEM_UPDATING
+ || (S_ISDIR(file->mode)
+ && iflags & ITEM_REPORT_TIME))
log_send(file, &stats, iflags);
continue;
}
if (!am_server && log_format)
log_send(file, &stats, iflags);
write_int(f_out, i);
- if (protocol_version >= 29) {
- write_byte(f_out, iflags);
- write_byte(f_out, iflags >> 8);
- }
+ if (protocol_version >= 29)
+ write_shortint(f_out, iflags);
continue;
}
}
write_int(f_out, i);
- if (protocol_version >= 29) {
- write_byte(f_out, iflags);
- write_byte(f_out, iflags >> 8);
- }
+ if (protocol_version >= 29)
+ write_shortint(f_out, iflags);
write_sum_head(f_out, s);
if (verbose > 2) {