mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-03-09 09:58:08 -04:00
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().
This commit is contained in:
2
flist.c
2
flist.c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user