X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/22907b6bd9adeba63aacbf51e4c9364db3e6abd6..ef20efcbb69274e423321d7ac27bfe868bca65aa:/receiver.c diff --git a/receiver.c b/receiver.c index 4ad71268..b0a9ebd5 100644 --- a/receiver.c +++ b/receiver.c @@ -605,8 +605,7 @@ int recv_files(int f_in, struct file_list *flist, char *local_name, send_msg(MSG_SUCCESS, numbuf, 4); } } else if (!recv_ok) { - int msgtype = csum_length == SUM_LENGTH || read_batch ? - FERROR : FINFO; + int msgtype = phase || read_batch ? FERROR : FINFO; if (msgtype == FERROR || verbose) { char *errstr, *redostr, *keptstr; if (!(keep_partial && partialptr) && !inplace) @@ -627,7 +626,7 @@ int recv_files(int f_in, struct file_list *flist, char *local_name, errstr, safe_fname(fname), keptstr, redostr); } - if (csum_length != SUM_LENGTH) { + if (!phase) { SIVAL(numbuf, 0, i); send_msg(MSG_REDO, numbuf, 4); }