rem: if (copy_file(fnametmp,fname, file->mode & INITPERMMASK)) {
add: if (copy_file(fnametmp,fname, file->mode & INITACCESSPERMS)) {
context: void finish_transfer(char *fname, char *fnametmp, struct file_struct *file){	if (make_backups && !make_backup(fname))		return;	/* move tmp file over real file */	if (do_rename(fnametmp,fname) != 0) {		if (errno == EXDEV) {			/* rename failed on cross-filesystem link.  			   Copy the file instead. */			if (copy_file(fnametmp,fname, file->mode & INITPERMMASK)) {				rprintf(FERROR,"copy %s -> %s : %s\n",					fnametmp,fname,strerror(errno));			} else {				set_perms(fname,file,NULL,0);			}			do_unlink(fnametmp);		} else {			rprintf(FERROR,"rename %s -> %s : %s\n",				fnametmp,fname,strerror(errno));			do_unlink(fnametmp);		}	} else {		set_perms(fname,file,NULL,0);	}}