Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If the user specifies --backup with --delete (but without --backup-dir
[rsync/rsync.git]
/
options.c
diff --git
a/options.c
b/options.c
index
698f4fc
..
a66c8e0
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-1207,6
+1207,10
@@
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;
snprintf(err_buf, sizeof err_buf,
"--suffix cannot be a null string without --backup-dir\n");
return 0;
+ } else if (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);
}
if (make_backups && !backup_dir)
omit_dir_times = 1;
}
if (make_backups && !backup_dir)
omit_dir_times = 1;