return;
}
- if (statret == 0 &&
- !preserve_perms &&
- (S_ISDIR(st.st_mode) == S_ISDIR(file->mode))) {
+ if (statret == 0 && !preserve_perms
+ && S_ISDIR(st.st_mode) == S_ISDIR(file->mode)) {
/* if the file exists already and we aren't perserving
* permissions then act as though the remote end sent
* us the file permissions we already have */
}
#endif
- if (read_batch)
- return;
-
if (preserve_hard_links && hard_link_check(file, HL_CHECK_MASTER))
return;
return;
if (errno == ENOENT) {
write_int(f_out,i);
- if (!dry_run)
+ if (!dry_run && !read_batch)
write_sum_head(f_out, NULL);
} else if (verbose > 1) {
rsyserr(FERROR, errno,
if (preserve_hard_links && hard_link_check(file, HL_SKIP))
return;
write_int(f_out,i);
- if (!dry_run)
+ if (!dry_run && !read_batch)
write_sum_head(f_out, NULL);
return;
}
return;
}
- if (dry_run) {
+ if (dry_run || read_batch) {
write_int(f_out,i);
return;
}