From 6dc9b74bc661cf421dd2e9db0af9eb73824cced8 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 7 Jun 2006 23:05:24 +0000 Subject: [PATCH] Call log_init() with its new "restart" (0 or 1) arg. --- clientserver.c | 4 ++-- options.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clientserver.c b/clientserver.c index 478e6cb9..162ed8e6 100644 --- a/clientserver.c +++ b/clientserver.c @@ -389,7 +389,7 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host) parse_rule(&server_filter_list, p, MATCHFLG_WORD_SPLIT, XFLG_ABS_IF_SLASH | XFLG_OLD_PREFIXES); - log_init(); + log_init(1); #ifdef HAVE_PUTENV if (*lp_prexfer_exec(i) || *lp_postxfer_exec(i)) { @@ -836,7 +836,7 @@ int daemon_main(void) if (bind_address == NULL && *lp_bind_address()) bind_address = lp_bind_address(); - log_init(); + log_init(0); rprintf(FLOG, "rsyncd version %s starting, listening on port %d\n", RSYNC_VERSION, rsync_port); diff --git a/options.c b/options.c index f5b56391..f84c32ff 100644 --- a/options.c +++ b/options.c @@ -1327,7 +1327,7 @@ int parse_arguments(int *argc, const char ***argv, int frommain) if (logfile_format_has_i || log_format_has(logfile_format, 'o')) logfile_format_has_o_or_i = 1; } - log_init(); + log_init(0); } else if (!am_daemon) logfile_format = NULL; -- 2.34.1