diff options
author | Wayne Davison <wayned@samba.org> | 2009-02-04 18:14:15 -0800 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2009-02-04 18:23:59 -0800 |
commit | 46cd1ef6bc79f5779766d5829681cb2b0a66aa80 (patch) | |
tree | 174645fbd8856bda8a99f8154de435d25d8268a8 /flist.c | |
parent | 6e8061371776c0716b9eab43c04c48a338cf726a (diff) | |
download | rsync-46cd1ef6bc79f5779766d5829681cb2b0a66aa80.tar.gz |
Ensure that the sender turns off any msg_fd_in use earlier.
This avoids a problem where an extra message from the sender
could give the generator time to start sending data that will
not be understood by the sender's use of read_msg_fd().
Diffstat (limited to 'flist.c')
-rw-r--r-- | flist.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2262,6 +2262,8 @@ struct file_list *send_file_list(int f, int argc, char *argv[]) if (numeric_ids <= 0 && !inc_recurse) send_id_list(f); + set_msg_fd_in(-1); + /* send the io_error flag */ if (protocol_version < 30) write_int(f, ignore_errors ? 0 : io_error); |