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: also tweak single-/double-quotes and em-dashes.
[rsync/rsync.git]
/
options.c
diff --git
a/options.c
b/options.c
index
5fd2993
..
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;
@@
-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;