Commit 785db4ce authored by Wayne Davison's avatar Wayne Davison

Merged a couple more f != -1 if sections.

parent 5562deb1
...@@ -1135,12 +1135,11 @@ struct file_list *send_file_list(int f, int argc, char *argv[]) ...@@ -1135,12 +1135,11 @@ struct file_list *send_file_list(int f, int argc, char *argv[])
clean_flist(flist, 0, 0); clean_flist(flist, 0, 0);
/* now send the uid/gid list. This was introduced in protocol if (f != -1) {
* version 15 */ /* Now send the uid/gid list. This was introduced in
if (f != -1) * protocol version 15 */
send_uid_list(f); send_uid_list(f);
if (f != -1) {
/* send the io_error flag */ /* send the io_error flag */
write_int(f, lp_ignore_errors(module_id) ? 0 : io_error); write_int(f, lp_ignore_errors(module_id) ? 0 : io_error);
...@@ -1212,16 +1211,18 @@ struct file_list *recv_file_list(int f) ...@@ -1212,16 +1211,18 @@ struct file_list *recv_file_list(int f)
clean_flist(flist, relative_paths, 1); clean_flist(flist, relative_paths, 1);
/* now recv the uid/gid list. This was introduced in protocol version 15 */ if (f != -1) {
if (f != -1) /* Now send the uid/gid list. This was introduced in
* protocol version 15 */
recv_uid_list(f, flist); recv_uid_list(f, flist);
/* recv the io_error flag */ if (!read_batch) {
if (f != -1 && !read_batch) { /* dw-added readbatch */ /* Recv the io_error flag */
if (lp_ignore_errors(module_id) || ignore_errors) if (lp_ignore_errors(module_id) || ignore_errors)
read_int(f); read_int(f);
else else
io_error |= read_int(f); io_error |= read_int(f);
}
} }
if (list_only) { if (list_only) {
...@@ -1230,7 +1231,6 @@ struct file_list *recv_file_list(int f) ...@@ -1230,7 +1231,6 @@ struct file_list *recv_file_list(int f)
list_file_entry(flist->files[i]); list_file_entry(flist->files[i]);
} }
if (verbose > 2) if (verbose > 2)
rprintf(FINFO, "recv_file_list done\n"); rprintf(FINFO, "recv_file_list done\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment