backup-suffix files to be perishable.
need_messages_from_generator = 1;
}
need_messages_from_generator = 1;
}
- if (make_backups && !backup_dir && delete_mode && !delete_excluded
- && (!am_server || local_server)) {
- char *rule;
- if (asprintf(&rule, "P%s *%s",
- !am_sender || protocol_version >= 30 ? "p" : "",
- backup_suffix) < 0)
- out_of_memory("setup_protocol");
- parse_rule(&filter_list, rule, 0, 0);
- free(rule);
- }
if (partial_dir && *partial_dir != '/' && (!am_server || local_server)) {
int flags = MATCHFLG_NO_PREFIXES | MATCHFLG_DIRECTORY;
if (!am_sender || protocol_version >= 30)
if (partial_dir && *partial_dir != '/' && (!am_server || local_server)) {
int flags = MATCHFLG_NO_PREFIXES | MATCHFLG_DIRECTORY;
if (!am_sender || protocol_version >= 30)
snprintf(err_buf, sizeof err_buf,
"--suffix cannot be a null string without --backup-dir\n");
return 0;
snprintf(err_buf, sizeof err_buf,
"--suffix cannot be a null string without --backup-dir\n");
return 0;
+ } else if (make_backups && delete_mode && !delete_excluded && !am_server) {
+ snprintf(backup_dir_buf, sizeof backup_dir_buf,
+ "P *%s", backup_suffix);
+ parse_rule(&filter_list, backup_dir_buf, 0, 0);
}
if (make_backups && !backup_dir)
omit_dir_times = 1;
}
if (make_backups && !backup_dir)
omit_dir_times = 1;