struct file_struct *file;
- int len = backup_dir_len;
+ int len = deleting ? backup_dir_dels_len : backup_dir_len;
- statx sx;
+ stat_x sx;
while (*fullpath == '.' && fullpath[1] == '/') {
@@ -211,7 +235,8 @@ static int keep_backup(const char *fname
backup_dir_remainder = sizeof backup_dir_buf - backup_dir_len;
@@ -1451,6 +1481,31 @@ int parse_arguments(int *argc_p, const c
"P *%s", backup_suffix);
- parse_rule(&filter_list, backup_dir_buf, 0, 0);
+ parse_rule(&filter_list, backup_dir_buf, 0, 0);
}
+ /* If backup_dir_dels not supplied default to backup_dir if it has been supplied */
+ if (backup_dir && !backup_dir_dels) {