Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
99eb41b
)
Simplified whole_file variable checking.
author
Wayne Davison
<wayned@samba.org>
Thu, 3 Mar 2005 02:58:48 +0000
(
02:58
+0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 3 Mar 2005 02:58:48 +0000
(
02:58
+0000)
generator.c
patch
|
blob
|
blame
|
history
diff --git
a/generator.c
b/generator.c
index
6e5f9a3
..
c1a86f4
100644
(file)
--- a/
generator.c
+++ b/
generator.c
@@
-950,7
+950,7
@@
prepare_to_open:
statret = 0;
}
statret = 0;
}
- if (dry_run || read_batch || whole_file
> 0
)
+ if (dry_run || read_batch || whole_file)
goto notify_others;
if (fuzzy_basis) {
goto notify_others;
if (fuzzy_basis) {
@@
-1040,7
+1040,7
@@
notify_others:
if (dry_run || read_batch)
return;
if (dry_run || read_batch)
return;
- if (statret != 0 || whole_file
> 0
) {
+ if (statret != 0 || whole_file) {
write_sum_head(f_out, NULL);
return;
}
write_sum_head(f_out, NULL);
return;
}
@@
-1102,9
+1102,11
@@
void generate_files(int f_out, struct file_list *flist, char *local_name,
if (delete_before && !local_name && flist->count > 0)
do_delete_pass(flist, allowed_lull);
if (delete_before && !local_name && flist->count > 0)
do_delete_pass(flist, allowed_lull);
+ if (whole_file < 0)
+ whole_file = 0;
if (verbose >= 2) {
rprintf(FINFO, "delta-transmission %s\n",
if (verbose >= 2) {
rprintf(FINFO, "delta-transmission %s\n",
- whole_file
> 0
+ whole_file
? "disabled for local transfer or --whole-file"
: "enabled");
}
? "disabled for local transfer or --whole-file"
: "enabled");
}