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:
7daccb8
)
We now conditionally turn on whole_file in do_cmd() right before
author
Wayne Davison
<wayned@samba.org>
Tue, 13 Jul 2004 01:44:03 +0000
(
01:44
+0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 13 Jul 2004 01:44:03 +0000
(
01:44
+0000)
calling local_child().
main.c
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index
75070e3
..
0ec6dee
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-49,6
+49,7
@@
extern int protocol_version;
extern int recurse;
extern int relative_paths;
extern int rsync_port;
extern int recurse;
extern int relative_paths;
extern int rsync_port;
+extern int whole_file;
extern int read_batch;
extern int write_batch;
extern int filesfrom_fd;
extern int read_batch;
extern int write_batch;
extern int filesfrom_fd;
@@
-302,6
+303,10
@@
static pid_t do_cmd(char *cmd, char *machine, char *user, char *path,
if (local_server) {
if (read_batch)
create_flist_from_batch(); /* sets batch_flist */
if (local_server) {
if (read_batch)
create_flist_from_batch(); /* sets batch_flist */
+ /* If the user didn't request --[no-]whole-file, force
+ * it on, but only if we're not batch processing. */
+ if (whole_file < 0 && !read_batch && !write_batch)
+ whole_file = 1;
ret = local_child(argc, args, f_in, f_out, child_main);
} else {
ret = piped_child(args,f_in,f_out);
ret = local_child(argc, args, f_in, f_out, child_main);
} else {
ret = piped_child(args,f_in,f_out);