From 1312d9fc47482817a296c29abfd5d1b9ab5c58b1 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 1 Aug 2002 00:37:01 +0000 Subject: [PATCH] If daemon_over_rsh is set, we limit the generated options to just --server and --daemon. --- options.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/options.c b/options.c index d43399bf..42d4a155 100644 --- 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"; -- 2.34.1