struct file_list *local_file_list;
int i, j;
char *name;
+ extern int module_id;
if (cvs_exclude)
add_cvs_excludes();
- if (io_error) {
+ if (io_error && !lp_ignore_errors(module_id)) {
rprintf(FINFO,"IO error encountered - skipping file deletion\n");
return;
}
int phase=0;
int recv_ok;
extern struct stats stats;
+ extern int preserve_perms;
struct stats initial_stats;
if (verbose > 2) {
continue;
}
+ if (fd1 != -1 && !preserve_perms) {
+ /* if the file exists already and we aren't perserving
+ presmissions then act as though the remote end sent
+ us the file permissions we already have */
+ file->mode = st.st_mode;
+ }
+
if (fd1 != -1 && st.st_size > 0) {
buf = map_file(fd1,st.st_size);
if (verbose > 2)