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
If daemon_over_rsh is set, we limit the generated options to just
[rsync/rsync.git]
/
options.c
diff --git
a/options.c
b/options.c
index
d43399b
..
42d4a15
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-66,7
+66,8
@@
int module_id = -1;
int am_server = 0;
int am_sender = 0;
int recurse = 0;
int am_server = 0;
int am_sender = 0;
int recurse = 0;
-int am_daemon=0;
+int am_daemon = 0;
+int daemon_over_rsh = 0;
int do_stats=0;
int do_progress=0;
int keep_partial=0;
int do_stats=0;
int do_progress=0;
int keep_partial=0;
@@
-655,6
+656,13
@@
void server_options(char **args,int *argc)
args[ac++] = "--server";
args[ac++] = "--server";
+ if (daemon_over_rsh) {
+ args[ac++] = "--daemon";
+ *argc = ac;
+ /* if we're passing --daemon, we're done */
+ return;
+ }
+
if (!am_sender)
args[ac++] = "--sender";
if (!am_sender)
args[ac++] = "--sender";