Moved the reading of the final MSG_DONE message from here to
authorWayne Davison <wayned@samba.org>
Mon, 10 Jan 2005 00:31:55 +0000 (00:31 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 10 Jan 2005 00:31:55 +0000 (00:31 +0000)
generator.c (the message comes from the receiver).  This ensures
that any redo-pass files and delete-after processing are known to be
done prior to the start of the hard-link and dir-time-munging loops.

main.c

diff --git a/main.c b/main.c
index 7ff33f5..bb9cfde 100644 (file)
--- a/main.c
+++ b/main.c
@@ -540,7 +540,6 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
 
        generate_files(f_out, flist, local_name, name_pipe[1]);
 
-       get_redo_num(); /* Read final MSG_DONE and any prior messages. */
        report(-1);
        io_flush(FULL_FLUSH);
        if (protocol_version >= 24) {