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
Made the new --prune-empty-dirs code a little more memory efficient.
[rsync/rsync.git]
/
options.c
diff --git
a/options.c
b/options.c
index
1c2cf33
..
2d09017
100644
(file)
--- 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;
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);
snprintf(backup_dir_buf, sizeof backup_dir_buf,
"P *%s", backup_suffix);
parse_rule(&filter_list, backup_dir_buf, 0, 0);