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
Moved a couple auto-filter rules from options.c into compat.c so
[rsync/rsync.git]
/
options.c
diff --git
a/options.c
b/options.c
index
b720565
..
4017f81
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-1287,10
+1287,6
@@
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 (make_backups && delete_mode && !delete_excluded) {
- snprintf(backup_dir_buf, sizeof backup_dir_buf,
- "Pp *%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;
@@
-1403,11
+1399,6
@@
int parse_arguments(int *argc, const char ***argv, int frommain)
clean_fname(partial_dir, 1);
if (!*partial_dir || strcmp(partial_dir, ".") == 0)
partial_dir = NULL;
clean_fname(partial_dir, 1);
if (!*partial_dir || strcmp(partial_dir, ".") == 0)
partial_dir = NULL;
- else if (*partial_dir != '/' && !am_server) {
- parse_rule(&filter_list, partial_dir,
- MATCHFLG_NO_PREFIXES | MATCHFLG_DIRECTORY
- | MATCHFLG_PERISHABLE, 0);
- }
if (!partial_dir && refused_partial) {
create_refuse_error(refused_partial);
return 0;
if (!partial_dir && refused_partial) {
create_refuse_error(refused_partial);
return 0;