Got rid of the name-pipe from the generator to the receiver.
[rsync/rsync.git] / sender.c
index 225383b..d4387a4 100644 (file)
--- a/sender.c
+++ b/sender.c
@@ -169,7 +169,8 @@ int read_iflags(int f_in, int f_out, int ndx, char *buf)
                }
        } 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);
        }
@@ -321,6 +322,9 @@ void send_files(struct file_list *flist, int f_out, int f_in)
                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);