}
} else if (f_out >= 0) {
write_int(f_out, ndx);
- write_shortint(f_out, isave /*XXX iflags */);
+ if (protocol_version >= 29)
+ write_shortint(f_out, isave /*XXX iflags */);
if (len >= 0)
write_vstring(f_out, buf, len);
}
set_compression(fname);
match_sums(f_out, s, mbuf, st.st_size);
+ if (do_progress)
+ end_progress(st.st_size);
+
if (!log_before_transfer)
log_item(file, &initial_stats, iflags, NULL);