git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75aeac4
)
If daemon_over_rsh is set, we limit the generated options to just
author
Wayne Davison
<wayned@samba.org>
Thu, 1 Aug 2002 00:37:01 +0000
(
00:37
+0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 1 Aug 2002 00:37:01 +0000
(
00:37
+0000)
--server and --daemon.
options.c
patch
|
blob
|
history
diff --git
a/options.c
b/options.c
index d43399bffe4a30dd8fd1b742144f77b4b9de5209..42d4a1550d48441083d8f901a343e9337f881fa8 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_daemon=0;
+int am_daemon = 0;
+int daemon_over_rsh = 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";
+ if (daemon_over_rsh) {
+ args[ac++] = "--daemon";
+ *argc = ac;
+ /* if we're passing --daemon, we're done */
+ return;
+ }
+
if (!am_sender)
args[ac++] = "--sender";