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
- Added the 'p' (perishable) flag to the filter rules, as suggested
[rsync/rsync.git]
/
options.c
diff --git
a/options.c
b/options.c
index
1976071
..
954719d
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-106,7
+106,7
@@
size_t bwlimit_writemax = 0;
int ignore_existing = 0;
int ignore_non_existing = 0;
int need_messages_from_generator = 0;
int ignore_existing = 0;
int ignore_non_existing = 0;
int need_messages_from_generator = 0;
-int max_delete =
0
;
+int max_delete =
-1
;
OFF_T max_size = 0;
OFF_T min_size = 0;
int ignore_errors = 0;
OFF_T max_size = 0;
OFF_T min_size = 0;
int ignore_errors = 0;
@@
-715,9
+715,9
@@
static OFF_T parse_size_arg(char **size_arg, char def_suf)
const char *arg;
OFF_T size = 1;
const char *arg;
OFF_T size = 1;
- for (arg = *size_arg; is
digit(*(uchar*)
arg); arg++) {}
+ for (arg = *size_arg; is
Digit(
arg); arg++) {}
if (*arg == '.')
if (*arg == '.')
- for (arg++; is
digit(*(uchar*)
arg); arg++) {}
+ for (arg++; is
Digit(
arg); arg++) {}
switch (*arg && *arg != '+' && *arg != '-' ? *arg++ : def_suf) {
case 'b': case 'B':
reps = 0;
switch (*arg && *arg != '+' && *arg != '-' ? *arg++ : def_suf) {
case 'b': case 'B':
reps = 0;
@@
-1614,7
+1614,7
@@
void server_options(char **args,int *argc)
args[ac++] = arg;
}
args[ac++] = arg;
}
- if (max_delete && am_sender) {
+ if (max_delete
>= 0
&& am_sender) {
if (asprintf(&arg, "--max-delete=%d", max_delete) < 0)
goto oom;
args[ac++] = arg;
if (asprintf(&arg, "--max-delete=%d", max_delete) < 0)
goto oom;
args[ac++] = arg;