From c22260706cb5ff710f6ae18b7f8309196aa93c75 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 28 Jan 2006 01:55:55 +0000 Subject: [PATCH] Don't add the "protect" filter rule for backup-suffix filenames if --backup was not specified. --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.c b/options.c index 1c2cf332..2d09017f 100644 --- a/options.c +++ b/options.c @@ -1262,7 +1262,7 @@ int parse_arguments(int *argc, const char ***argv, int frommain) snprintf(err_buf, sizeof err_buf, "--suffix cannot be a null string without --backup-dir\n"); return 0; - } else if (delete_mode && !delete_excluded) { + } else if (make_backups && delete_mode && !delete_excluded) { snprintf(backup_dir_buf, sizeof backup_dir_buf, "P *%s", backup_suffix); parse_rule(&filter_list, backup_dir_buf, 0, 0); -- 2.34.1